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!