https://bugs.winehq.org/show_bug.cgi?id=52637
Bug ID: 52637 Summary: comctl32:listbox test_LBS_NODATA() fails in the Japanese and Chinese locales Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
When running comctl32:listbox test_LBS_NODATA() fails in the Japanese and Chinese locales:
listbox.c:2630: Test failed: Unexpected return value 5. listbox.c:2630: Test failed: Unexpected return value 5.
https://test.winehq.org/data/patterns.html#comctl32:listbox
5 is the number of TCHARs returned by LB_GETTEXTLEN but the test expects either 4 or 8 for 32- and 64-bit processes respectively.
The failures are systematic and, as far as I can tell, happen on any machine given the right locale (for instance LANG=ja_JP.UTF8).
Also a bisect pointed to this commit as the trigger for the failures:
commit 5e75e5f66dc638ef9684f949e32a17a9df43fcdb Author: Jacek Caban jacek@codeweavers.com Date: Mon Mar 7 14:41:03 2022 +0100
user32: Introduce get_class_info.
And use it in WIN_CreateWindowEx to trigger class registration.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org