https://bugs.winehq.org/show_bug.cgi?id=54559
Bug ID: 54559 Summary: riched20:editor fails on Windows in the Hindi locale Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: richedit Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
riched20:editor fails on Windows in the Hindi locale:
editor.c:719: Test failed: EM_POSFROMCHAR reports x=5, expected 1 editor.c:742: Test failed: EM_POSFROMCHAR reports x=5, expected 1 editor.c:773: Test failed: pt.x = 103 editor.c:540: Tests skipped: Skip multibyte character tests on non-Japanese platform editor.c:927: Test failed: Text marked as modified, expected not modified! editor.c:1872: Tests skipped: Skip multibyte character tests on non-Japanese platform editor.c:1899: Test failed: EM_GETSELTEXT returned 0 editor.c:1900: Test failed: EM_GETSELTEXT filled editor.c:1906: Test failed: EM_GETSELTEXT returned 0 editor.c:1907: Test failed: EM_GETSELTEXT filled
See https://test.winehq.org/data/patterns.html#riched20:editor
The failures happen in test_EM_POSFROMCHAR(), test_EM_SETCHARFORMAT and test_EM_GETSELTEXT(). This is not impacted by the UTF-8 code page.
https://bugs.winehq.org/show_bug.cgi?id=54559
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=54559
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|riched20:editor fails on |riched20:editor - |Windows in the Hindi locale |test_EM_GETSELTEXT() fails | |in the Hindi locale on | |Windows
--- Comment #1 from François Gouget fgouget@codeweavers.com --- The test_EM_POSFROMCHAR() failure is the same as the one in riched32:editor so I moved it to bug 54576. The test_EM_SETCHARFORMAT() failure is going to require a separate fix too so I moved it to bug 54579.
So all that remains in this bug is the test_EM_GETSELTEXT() failures and I updated the summary accordingly.
https://bugs.winehq.org/show_bug.cgi?id=54559
--- Comment #2 from François Gouget fgouget@codeweavers.com --- I sent a merge request to fix the EM_GETSELTEXT failures: https://gitlab.winehq.org/wine/wine/-/merge_requests/2276
https://bugs.winehq.org/show_bug.cgi?id=54559
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |37cd13abdf5d91c7b3f25b39fa1 | |4976bc3a3e3a3
--- Comment #3 from François Gouget fgouget@codeweavers.com --- This got fixed by the commit below:
commit 37cd13abdf5d91c7b3f25b39fa14976bc3a3e3a3 Author: François Gouget fgouget@codeweavers.com AuthorDate: Fri Feb 24 02:03:41 2023 +0100
riched20/tests: Fix the EM_GETSELTEXT tests in Hindi on Windows.
On Windows EM_GETSELTEXT fails with an invalid parameter error in the Hindi locale but works in most other locales, including UTF-8 ones. So check for this issue and adjust the expected results accordingly.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54559 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54565
https://bugs.winehq.org/show_bug.cgi?id=54559
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.3.