kernel32: Restore C locale for LC_CTYPE category.
In tr_TR.UTF-8 locale tolower('I') != 'i' (this is not a bug in glibc, tolower('I') is suppossed to return dotless i that is 2-byte long). Because of that strcasemp("i", "I") returns that the strings are different. Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
849daa9c85
commit
c8e195e179
|
@ -4226,6 +4226,7 @@ void LOCALE_Init(void)
|
|||
mac_cptable->info.codepage, unix_cp );
|
||||
|
||||
setlocale(LC_NUMERIC, "C"); /* FIXME: oleaut32 depends on this */
|
||||
setlocale(LC_CTYPE, "C"); /* Fixes issues when tr_TR.UTF-8 locale is used */
|
||||
}
|
||||
|
||||
static HANDLE NLS_RegOpenKey(HANDLE hRootKey, LPCWSTR szKeyName)
|
||||
|
|
Loading…
Reference in New Issue