This code has a lot of history.
WM_IME_CHAR first appears in commit 89.
The commit message “Horizontal scroll bar disabling.” doesn’t explain the IME change so I suspect there were several changes being worked on together. My email records have a year-long gap around this time. The patch disables the start/end composition handling and appears to be for Japanese [from the SetThreadLocale(MAKELCID(932…].
There are several changes to this code from Korean (twkang) and Japanese users. Most of the messages seem to be about Windows 9x.
I suspect WM_IME_CHAR, as of release 3.5.2 before Windows 9x support was removed, could only be triggered on Windows 9x. I can trigger the other calls to AddCharBytes from WM_CHAR with 3.5.2 on Windows 7 by changing window registration to ANSI: RegisterClassExW->RegisterClassExA, WNDCLASSEXW -> WNDCLASSEXA, and L”Scintilla”->”Scintilla”.
But even then WM_IME_CHAR does not occur for me. As it doesn’t occur for you, its been removed. If someone reports a bug because of the change, then we’ll know how to exercise this code. Removal commit:
While this removes the last use of AddCharUTF(*,*,treatAsDBCS=true) from the Scintilla distribution, there may still be other platforms distributed separately that pass true for treatAsDBCS.
Neil