Tk Source Code

View Ticket
Login
Ticket UUID: 226652
Title: TK does not handle IME input on English Win2K
Type: Bug Version: obsolete: 8.4a2
Submitter: ioilam Created on: 2000-12-22 02:54:15
Subsystem: 68. Win Window Operations Assigned To: ioilam
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-03-31 06:51:48
Resolution: Fixed Closed By: hobbs
    Closed on: 2001-03-30 23:51:48
Description:
Win2K now has "multi-lingual" support: e.g., it allows you to input Chinese characters on an English version of win2k. See the following link for details.

http://www.microsoft.com/windows/ie/features/w2kime.asp

Tk 8.4a2 and before do not handle this type of situation. If you use English win2k and try to input a Chinese char into a TK window, the char shows up as "?"

The fix is to handle WM_INPUTLANGCHANGE and WM_IME_COMPOSITION events. I have a fix and I will submit to the SF patch manager shortly.

After the fix, you can enter chars of any language, as long as the Input Method Editor of the given language is installed on your win2k box.

The fix is for win2k only, but it's harmless on other versions of windows (95/98 or NT).
User Comments: hobbs added on 2001-03-31 06:51:48:
Logged In: YES 
user_id=72656

Support added as per patch 402993 in 8.4a2cvs.

hobbs added on 2001-03-30 11:58:31:
Logged In: YES 
user_id=72656

Looks good in general, a couple of questions though...

Why are we not handling WM_INPUTLANGCHANGEREQUEST, and why 
were the WMs handled in TkWinChildProc instead of 
Tk_TranslateWinEvent?

Has this been tested to be innocuous to Win9*?