vbscript/tests: Fix the testChrError() tests.

Chr() depends on the thread's ANSI code page which in some cases is different
from the Windows ANSI code page (e.g. hi-IN).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54003
This commit is contained in:
Francois Gouget 2023-02-21 20:08:29 +01:00 committed by Alexandre Julliard
parent 77fdfdb8ef
commit 15b176b4f4

View file

@ -239,7 +239,7 @@ static void detect_locale(void)
PRIMARYLANGID(GetUserDefaultUILanguage()) == LANG_ENGLISH &&
PRIMARYLANGID(GetUserDefaultLangID()) == LANG_ENGLISH);
GetCPInfoExA( CP_ACP, 0, &cpinfo );
GetCPInfoExA( CP_THREAD_ACP, 0, &cpinfo );
MaxCharSize = cpinfo.MaxCharSize;
GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_IFIRSTDAYOFWEEK | LOCALE_RETURN_NUMBER,