https://bugs.winehq.org/show_bug.cgi?id=51410
Bug ID: 51410 Summary: mlang:mlang fails on the Hindi test configuration Product: Wine Version: 6.10 Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: mlang Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
Created attachment 70266 --> https://bugs.winehq.org/attachment.cgi?id=70266 mlang/tests: Fix the check for non-English locales in test_GetCodePageInfo().
mlang:mlang fails on the Hindi test configuration:
https://test.winehq.org/data/patterns.html#mlang:mlang
The 36 systematic failures all happen on lines 2572 to 2580 in test_GetCodePageInfo(). For instance:
mlang.c:2572: Test failed: 9: got wrong wszDescription expected L"Baltic (Windows)" return L"\092c\093e\0932\094d\091f\093f\0915 (Windows)". mlang.c:2576: Test failed: 9: got wrong wszFixedWidthFont expected L"Courier New" return L"Nirmala UI". mlang.c:2580: Test failed: 9: got wrong wszProportionalFont expected L"Arial" return L"Nirmala UI".
These checks are meant to be skipped on non-English locales but the test checks the wrong Windows locale and gets confused because the Hindi test configuration still has some English locales (notably the system locale, see WineTest's locale information dump).
The attached patch should fix this.