GTK_IM_MODULE=XIM does not work

Bug #295001 reported by LI Daobing
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fcitx (Debian)
Fix Released
Unknown
fcitx (Ubuntu)
Fix Released
Undecided
LI Daobing

Bug Description

Binary package hint: fcitx

Hello,

/etc/X11/xinit/xinput.d/fcitx contain `GTK_IM_MODULE=XIM', but this does not
work, it should be `GTK_IM_MODULE=xim'.

for example,

$ fcitx & # enable fcitx daemon
$ XMODIFIERS=@im=fcitx GTK_IM_MODULE=XIM LANG=en_US.UTF-8 gedit

in this env, you can't active fcitx with Ctrl+Space

$ XMODIFIERS=@im=fcitx GTK_IM_MODULE=xim LANG=en_US.UTF-8 gedit

in this env, you CAN active fcitx with Ctrl+Space

the patch:

diff -ur fcitx-3.4.3.orig/debian/im-switch/fcitx
fcitx-3.4.3/debian/im-switch/fcitx
--- fcitx-3.4.3.orig/debian/im-switch/fcitx 2007-12-05 16:28:28.000000000
+0800
+++ fcitx-3.4.3/debian/im-switch/fcitx 2007-12-05 16:28:46.000000000 +0800
@@ -1,6 +1,6 @@
 XIM=fcitx
 XIM_PROGRAM=/usr/bin/fcitx
 XIM_ARGS=""
-GTK_IM_MODULE=XIM
+GTK_IM_MODULE=xim
 QT_IM_MODULE=XIM
 DEPENDS="fcitx"

Revision history for this message
LI Daobing (lidaobing) wrote :
Changed in fcitx:
assignee: nobody → lidaobing
status: New → In Progress
Revision history for this message
James Westby (james-w) wrote :

Hi,

Thanks for the patch.

I wonder if there is a code way to fix this? Would it be possible to
use a case-insensitive compare to avoid the problem? How would this
interact with other modules?

I don't think there is anything wrong with your selected patch, I would
just like to understand the issue a little better.

Thanks,

James

Revision history for this message
LI Daobing (lidaobing) wrote : Re: [Bug 295001] Re: GTK_IM_MODULE=XIM does not work

Hello,

On Tue, Nov 18, 2008 at 10:56 PM, James Westby
<email address hidden> wrote:
> Hi,
>
> Thanks for the patch.
>
> I wonder if there is a code way to fix this? Would it be possible to
> use a case-insensitive compare to avoid the problem? How would this
> interact with other modules?
we need patch GTK to let it support XIM, :-)

>
> I don't think there is anything wrong with your selected patch, I would
> just like to understand the issue a little better.
>

--
Best Regards,
 LI Daobing

Revision history for this message
James Westby (james-w) wrote :

Hi,

Why does QT not have the same problem? it also uses a capitalised "XIM"
in that file.

Thanks,

James

Revision history for this message
LI Daobing (lidaobing) wrote :

On Wed, Nov 19, 2008 at 2:49 AM, James Westby <email address hidden> wrote:
> Hi,
>
> Why does QT not have the same problem? it also uses a capitalised "XIM"
> in that file.
>
I don't know, you should ask qt team or qt-xim team.

--
Best Regards,
 LI Daobing

Revision history for this message
James Westby (james-w) wrote :

Hi,

This is fixed in Debian, thanks for your work.

We will get the fix when the autosyncer gets to it.

Thanks,

James

Revision history for this message
James Westby (james-w) wrote :

Hi,

The fixed package has now been synced.

Thanks,

James

Changed in fcitx:
status: In Progress → Fix Released
Changed in fcitx:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.