https://bugs.winehq.org/show_bug.cgi?id=54799
Bug ID: 54799 Summary: wininet:internet - test_InternetGetConnectedStateExA() fails in the Japanese and Chinese locales in Wine Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wininet Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
wininet:internet - test_InternetGetConnectedStateExA() fails in DBCS locales in Wine.
* Japanese internet.c:1693: Test failed: Expected 7 bytes, got 8
* Chinese internet.c:1693: Test failed: Expected 9 bytes, got 10 internet.c:1700: Test failed: Expected 4 bytes, got 10 internet.c:1714: Test failed: Expected 1 byte, got 10
See https://test.winehq.org/data/patterns.html#wininet:internet
The test expects the buffer to always be null-terminated but that's not always the case in Wine.