https://bugs.winehq.org/show_bug.cgi?id=54582
Bug ID: 54582 Summary: kernel32:locale - test_NLSVersion() fails on Windows 10 22H2 Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
kernel32:locale - test_NLSVersion() fails on Windows 10 22H2:
locale.c:7871: Test failed: IsValidNLSVersion succeeded
See https://test.winehq.org/data/patterns.html#kernel32:locale
Apparently the point of this set of test is to verify that IsValidNLSVersion() rejects any version different from that returned by GetNLSVersion().
But sometimes that's not the case. Indeed a similar failure happened on Windows 10 2004 back in the day, see bug 51159. In that case IsValidNLSVersion() accepted versions 0x100 lower than the current one, presumably because that version of Windows was keeping compatibility with older NLS versions. That one was fixed by making bigger changes to the version.
In this case Windows 10 22H2 accepts NLS versions that are 0x100 greater than the current one. So presumably we can just use a larger increment to get the expected failure.