Commit b66f9af1 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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
parent 705d35ed
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment