https://bugs.winehq.org/show_bug.cgi?id=43904
Bug ID: 43904 Summary: HeTeMuLu Creator: Can't input some kanji characters properly. Product: Wine Version: 2.19 Hardware: x86-64 URL: http://dl.hosiken.jp/win/hetecre/hcre110a.zip OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: sagawa.aki+winebugs@gmail.com Distribution: Ubuntu
Created attachment 59531 --> https://bugs.winehq.org/attachment.cgi?id=59531 mojibake against an input character.
HeTeMuLu Creator is a tag insertion type HTML editor written by Kenji Hosimoto. In the text area, I can input Japanese kanji characters through XIM, e.g. Fcitx. However, when I input a certain kanji character, it isn't shown properly.
How to reproduce: 1. Extract hcre110a.zip. 2. Run Hetecre.exe in Japanese locale (i.e. LANG=ja_JP.UTF-8). 3. Click Close in "A Tip for Today" window. 4. Input "縋る" (Sugaru) with Japanese IME.
Expected result: It shows "縋る" in the text area.
Actual result: It shows "・vる" in the text area (see the attachment).
Note: * When I open a text file which contains "縋", it shows without issues. I can paste the character, too. Therefore, it's an input side bug, I think. * I can also reproduce with JIS X 0208 level 2 characters whose leading byte value greater than or equals to 0xE0.
https://bugs.winehq.org/show_bug.cgi?id=43904
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=43904
--- Comment #1 from Sagawa sagawa.aki+winebugs@gmail.com --- Created attachment 59533 --> https://bugs.winehq.org/attachment.cgi?id=59533 proposed patch
I found out this is due to WM_IME_COMPOSITION handling. I attach a proposed patch.
In detail, HeTeMuLu WM_IME_COMPOSITION handler reads the result buffer after calling CallWindowProc. On the other hand, when wine's IME handler (in winex11.drv/ime.c or winemac.drv/ime.c) receives WM_IME_COMPOSITION, it clears the result buffer after sending WM_IME_CHAR messages. However, the native keeps the result buffer.
I made a patch for fixing this point. HeTeMuLu works fine with the patch!
https://bugs.winehq.org/show_bug.cgi?id=43904
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Sagawa sagawa.aki+winebugs@gmail.com --- Fixed by commit b8dc1e7cde64c212882958c0806b50911a360fb9.
https://bugs.winehq.org/show_bug.cgi?id=43904
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b8dc1e7cde64c212882958c0806 | |b50911a360fb9
https://bugs.winehq.org/show_bug.cgi?id=43904
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.22.
https://bugs.winehq.org/show_bug.cgi?id=43904
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x
https://bugs.winehq.org/show_bug.cgi?id=43904
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 2.0.x milestone from bugs included in 2.0.5.