[PATCH v2] ntdll: Add missing LC_NUMERIC locale setting to init_locale

Thomas Crider gloriouseggroll at gmail.com
Sun Jul 5 12:16:06 CDT 2020


This re-adds the missing setlocale( LC_NUMERIC, "C" ); that was
not transferred when ntdll locale code was moved to ntdll/unix in
commit b86dc3926bfe5cd92400aa96c89b0255eba1d447.

Fixes:
https://bugs.winehq.org/show_bug.cgi?id=49489
https://bugs.winehq.org/show_bug.cgi?id=49417

Signed-off-by: Thomas Crider <gloriouseggroll at gmail.com>
---
 dlls/ntdll/unix/env.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c
index eb75e6e949..c9764e5c6e 100644
--- a/dlls/ntdll/unix/env.c
+++ b/dlls/ntdll/unix/env.c
@@ -943,6 +943,7 @@ static void init_locale(void)
         if (preferred_langs) CFRelease( preferred_langs );
     }
 #endif
+    setlocale( LC_NUMERIC, "C" );  /* FIXME: oleaut32 depends on this */
 }
 
 
-- 
2.26.2




More information about the wine-devel mailing list