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.
https://bugs.winehq.org/show_bug.cgi?id=51410
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, source, testcase
https://bugs.winehq.org/show_bug.cgi?id=51410
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=51410
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |237befbe4d69fb275ad77e1907d | |2f06821c7850e Resolution|--- |FIXED
--- Comment #1 from François Gouget fgouget@codeweavers.com --- commit 237befbe4d69fb275ad77e1907d2f06821c7850e Author: Francois Gouget fgouget@codeweavers.com AuthorDate: Tue Jul 6 16:56:23 2021 +0200
mlang/tests: Fix the check for non-English locales in test_GetCodePageInfo().
The strings returned by GetCodePageInfo() depend on the thread's UI language, not the system locale or the thread's standards and formats settings.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=51410
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.14.