Commit ec7f2f88 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent f662e254
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment