[Bug 6798] New: Unable to use GCIN/OXIM to type chinese in wine

Wine Bugs wine-bugs at winehq.org
Tue Nov 28 05:41:40 CST 2006


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 at winehq.org
        ReportedBy: wsun013 at gmail.com
                CC: wsun013 at 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_main.c;h=95f9d10878f5ce26bf525017af2ea5e106a2dfbc;hp=0403b5d9d5d11c7914809b1710b80f729ca75181;hb=0f8706ec33b3193f19b3a55247fe515497063fc5;hpb=ab85b653f51730e427de2558e5349d3d12ffb690
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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list