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>
stable
Piotr Caban 2019-03-18 20:03:40 +01:00 committed by Alexandre Julliard
parent 849daa9c85
commit c8e195e179
1 changed files with 1 additions and 0 deletions

View File

@ -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)