[Bug 7512] Problem with unicode comboboxes

Wine Bugs wine-bugs at winehq.org
Fri Feb 23 07:24:03 CST 2007


http://bugs.winehq.org/show_bug.cgi?id=7512





------- Additional Comments From lightning_uk at imgburn.com  2007-23-02 07:24 -------
Created an attachment (id=5063)
 --> (http://bugs.winehq.org/attachment.cgi?id=5063&action=view)
Simple test case programs

I've thrown together a couple of basic test apps as requested. Thank you for
looking into this :)

One exe uses the Tnt code with GetWindowLongA, and the other with
GetWindowLongW.

The names of the exe's clearly show which is which.

My findings with these apps are as follows:

Under Windows:
- GetWindowLongA
-- Works as expected. 'IsWindowUnicode' returns TRUE. I can paste a unicode
character (from charmap) into the combobox, click 'Go' and it ends up in the
TntLabel on the right. Normal text input via the keyboard also works fine.

- GetWindowLongW
-- Doesn't work as expected. 'IsWindowUnicode' returns FALSE. I can paste a
unicode character (from charmap) into the combobox, click 'Go' and all I get in
the TntLabel on the right is garbage (normally a question mark). Normal text
input via the keyboard works fine. Obviously it just doesn't like unicode.


Under Wine:
- GetWindowsLongA
-- Doesn't work as expected. 'IsWindowUnicode' returns TRUE. Text input via the
keyboard into the TntComboBox gets compressed (at byte level) from wchar_t to
char and you just get garbage in the TntLabel on the right.

- GetWindowsLongW
-- Works as expected. 'IsWindowUnicode' returns FALSE. Text input via the
keyboard into the TntComboBox is correctly displayed in the TntLabel on the
right.

Copy + paste from charmap under wine doesn't appear to work with this app so I
was unsure how to test unicode character input.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list