bug shows here: http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/43fca0b5fbce3398/785ae0ad16e3ca37?pli=1
I found only one line corrected, we can solve this problem. (maybe just skip, but anyway wish can run):
line 365 in tkEvent.c :
XGetICValues(winPtr->inputContext, XNFilterEvents, &im_event_mask, NULL);
=> if (winPtr->inputContext != NULL) XGetICValues(winPtr->inputContext, XNFilterEvents, &im_event_mask, NULL);
The XIM Server which I use is gcin. I type Traditional/Simple Chinese by it.
I can't run scilab, xcircuit(tcl), wish...etc. until change line 365 in tkEvent.c.
At present, they work fine and can display Chinese, but I can't type any Chinese word in many packages depending tcl/tk.
However, I can type Chinese words in scilab, depending tcl/tk too.
Solving this problem completely maybe need to hack gcin & scilab, I guess.