https://bugs.winehq.org/show_bug.cgi?id=54565
Bug ID: 54565 Summary: riched20:richole - subtest_InsertObject() fails in the Hindi locale on Windows 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:richole - subtest_InsertObject() fails in the Hindi locale on Windows:
richole.c:4072: Test failed: Got wrong length: 0. richole.c:4073: Test failed: Got wrong content: . richole.c:4155: Test failed: Got wrong length: 0. richole.c:4156: Test failed: Got wrong content: . richole.c:4072: Test failed: Got wrong length: 0. richole.c:4073: Test failed: Got wrong content: . richole.c:4155: Test failed: Got wrong length: 0. richole.c:4156: Test failed: Got wrong content: .
See https://test.winehq.org/data/patterns.html#riched20:richole
These failures only happen in the Hindi and Hindi + UTF-8 locales.
What happens is that the test ends up inserting 'object replacement characters' into the test string (\fffb), then selects the whole string and tries to retrieve it with EM_GETSELTEXT. In all locales the \fffb characters get replaced with spaces (or lookalike), but not in Hindi.