http://bugs.winehq.org/show_bug.cgi?id=6798
Summary: Unable to use GCIN/OXIM to type chinese in wine Product: Wine Version: 0.9.26. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: critical Priority: P1 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: wsun013@gmail.com CC: wsun013@gmail.com
GCIN are OXIM (and some others) are programs allow you to type Chinese (maybe other languages) by overriding the XIM variable.
When I try to use GCIN to type up Chinese words, say in the notepad shipped with wine, the input dialog (to input bases/spellings of a word) doesn't show up, and the notepad hangs (not crashed) right after the XIM is called.
Here are the steps to reproduce the problem. 1. download the gcin source from http://cle.linux.org.tw/gcin/download/ http://cle.linux.org.tw/gcin/download/gcin-1.3.0.1.tar.bz2 2. build it, and install it. 3. modified the ~/.xinitrc or ~/.xsession due to either you are using startx or gdm/kdm to start up your X11 session by adding up:
export XMODIFIERS="@im=gcin" export GTK_IM_MODULE=gcin exec gcin &
4. restart the X window. 5. wine notepad. 6. <ctrl>+<space> to activate the GCIN input method. 7. notepad will be hang now.
Solutions (maybe temporary) 1. This bug has been existed since wine 0.9.23 2. I traced up patches within git repository from version 0.9.22 and found that this commit is the key: http://source.winehq.org/git/wine.git/?a=blobdiff;f=dlls/winex11.drv/x11drv_... 3. Therefore, reverse the patch, or comment out the
if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" );
in dlls/winex11.drv/x11drv_main.c (or reverse) the patch makes my gcin work again.
4. My wildly guess is that either the ERR blocks the program or XInitThreads is still buggy. Anyway, hope this works for you guys.
Best Regards,
Wei-Tsun Sun