1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

kernel32/tests: Fix the French GetNumberFormatEx() test on Windows 11.

Windows 11 uses a narrow non-breaking space instead of a plain one when
formatting numbers.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54583
This commit is contained in:
Francois Gouget 2023-02-25 20:27:36 +01:00 committed by Alexandre Julliard
parent 705d35edfa
commit b66f9af106

View file

@ -1816,8 +1816,12 @@ static void test_GetNumberFormatEx(void)
/* Test French formatting */
if (pIsValidLocaleName(frW))
{
const WCHAR *expected;
ret = pGetNumberFormatEx(frW, NUO, L"-12345", NULL, buffer, ARRAY_SIZE(buffer));
expect_wstr(ret, buffer, L"-12\xa0\x33\x34\x35,00"); /* Non breaking space */
expected = (ret && wcschr(buffer, 0x202f)) ?
L"-12\x202f\x33\x34\x35,00" : /* Same but narrow (win11) */
L"-12\xa0\x33\x34\x35,00"; /* Non breaking space */
expect_wstr(ret, buffer, expected);
}
}