[Bug 52913] New: user32:dde fails on Windows with the UTF-8 codepage

WineHQ Bugzilla wine-bugs at winehq.org
Tue Apr 26 19:37:45 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52913

            Bug ID: 52913
           Summary: user32:dde fails on Windows with the UTF-8 codepage
           Product: Wine
           Version: unspecified
          Hardware: x86-64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: user32
          Assignee: wine-bugs at winehq.org
          Reporter: fgouget at codeweavers.com

user32:dde fails on Windows with the UTF-8 codepage.

dde.c:2653: client ansi, server ansi
dde.c:2535: Test failed: Wrong size 5 expected 7 or 6, msg_index=9
dde.c:2537: Test failed: Expected abcé, got abcé, msg_index=9
msg_index=9

https://test.winehq.org/data/patterns.html#user32:dde

The failing string is actually this one:

    { 0x0061, 0x0062, 0x0063, 0x9152, 0 },  /* Chinese with latin characters
begin */

Adding a couple of wine_dbgstr_a() shows that the two strings that are compared
are:

dde.c:2538: Test failed: Expected [abc酒] "abc\xe9\x85\x92", got [abc��]
"abc\xe9\x85", msg_index=9

I have confirmed that the 0x9152 UTF-16 character translates to \xe9\x85\x92 in
UTF-8 [1]. So the issue is that the string we receive is missing one byte.

However that looks like a Windows bug in the character encoding conversion.

[1] For some reason test.winehq.org seems to interpret the page as iso-8859-1
so \xe9 is shown as 'é'.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list