Alexandre Julliard : msvcrt: Use LOCALE_USER_DEFAULT to get the proper codepage for the Unix locale.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Dec 8 06:07:15 CST 2006


Module: wine
Branch: master
Commit: ec7f2f88028ff2b53425565dce74c93bd5d0b6aa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ec7f2f88028ff2b53425565dce74c93bd5d0b6aa

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Dec  8 12:56:17 2006 +0100

msvcrt: Use LOCALE_USER_DEFAULT to get the proper codepage for the Unix locale.

---

 dlls/msvcrt/locale.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index 05150b9..32d73d0 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -549,7 +549,7 @@ int CDECL _setmbcp(int cp)
   }
   else if(cp == _MB_CP_LOCALE)
   {
-    GetLocaleInfoW( GetUserDefaultLCID(), LOCALE_IDEFAULTANSICODEPAGE|LOCALE_RETURN_NUMBER, 
+    GetLocaleInfoW( LOCALE_USER_DEFAULT, LOCALE_IDEFAULTANSICODEPAGE|LOCALE_RETURN_NUMBER,
                     (WCHAR *)&msvcrt_current_lc_all_cp, sizeof(INT)/sizeof(WCHAR) );
   }
   else if(cp == _MB_CP_SBCS)




More information about the wine-cvs mailing list