Piotr Caban : kernel32: Restore C locale for LC_CTYPE category.
Module: wine Branch: master Commit: c8e195e1797bd513c91927743b3ed38fdfa86c2f URL: https://source.winehq.org/git/wine.git/?a=commit;h=c8e195e1797bd513c91927743... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Mar 18 20:03:40 2019 +0100 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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/kernel32/locale.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index eedb0be..ed7543e 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -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)
participants (1)
-
Alexandre Julliard