Automatic ANSI<>Unicode message translation

Phil Krylov phil at newstar.rinet.ru
Mon Jul 25 18:29:03 CDT 2005


Hi,

I am having a problem with an app of mine. It posts WM_CHAR messages to a
ANSI window with Unicode value in LOWORD(wParam). Wine automatically
translates the character code to ANSI (producing a "?" when there is no such
code in CP_ACP). Windows does not do it (contrary to documentation). Here
is attached (source and binary) a quick and dirty sample application which
shows the problem.

I could remove map_wparam_AtoW() and map_wparam_WtoA() from
dlls/user/message.c, but probably somebody needs that translation. Does
anybody have an idea of a better fix for that bug?

-- Ph.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msgchar.c
Type: text/x-csrc
Size: 2251 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050726/6950a3f6/msgchar.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msgchar.exe
Type: application/x-ms-dos-executable
Size: 6144 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050726/6950a3f6/msgchar.bin


More information about the wine-devel mailing list