Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58656 - GTK2 defaults to uim-pinyin-big5 input method due to incorrent gtk.immodules
Summary: GTK2 defaults to uim-pinyin-big5 input method due to incorrent gtk.immodules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-28 06:44 UTC by Mattias Flodin
Modified: 2004-10-25 01:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mattias Flodin 2004-07-28 06:44:59 UTC
This problem occurred within the last six months, sorry I can't be more specific - I didn't have time to investigate it when it changed. At some point UIM-enabled GTK2 applications began starting with the uim-pinyin-big5 input method instead of uim-default as they used to. I pinpointed the problem to line 26 of /etc/gtk-2.0/gtk.immodules which says

"uim-pinyin-big5" "uim-pinyin-big5 (*)" "gtk+" "" "*"

It is my understanding that the star indicates a default, and the uim-default line also uses "*". I solved the problem on my end by changing the line to

"uim-pinyin-big5" "uim-pinyin-big5 (*)" "gtk+" "" "zh_CN"

though I don't know if this is the correct solution. At any rate, I don't believe it is correct for all Gentoo installations to start up with Chinese as the default.

Reproducible: Always
Steps to Reproduce:
1. Start gnome-terminal on a gnome desktop compiled with UIM support
2. Right-click in window to bring up context menu.
3. Open "Input Methods" submenu.


Actual Results:  
uim-pinyin-big5 is selected in the menu.

Expected Results:  
uim-default should have been selected.

emerge info output:

Gentoo Base System version 1.5.1
Portage 2.0.50-r9 (2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r11)=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) M processor 1300MHz
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -fprefetch-loop-arrays
-fforce-addr -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/resin/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -fprefetch-loop-arrays
-fforce-addr -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apache2 arts avi berkdb canna cdr cjk crypt cscope
dga directfb dvd encode esd f77 fftw flac foomaticdb gd gdbm ggi gif gnome gpm
gstreamer gtk gtk2 icc icc-pgo icq imagemagick imlib jabber java javascript
jikes jpeg kde lcms libg++ libwww mad mikmod mmx motif mozilla mpeg msn mysql
ncurses nls oggvorbis opengl oscar pam pdflib png postgres python qt quicktime
readline samba sdl slang speex spell sse ssl svga tcpd tetex tiff truetype
unicode usb videos wmf wxwindows x86 xml2 xmms xv yahoo zlib"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2004-07-28 17:57:29 UTC
yes, you are correct. i put in a patch for scim to not be enabled for all locales except zh, ja and ko. maybe we can do the same for uim.
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-08-13 18:25:47 UTC
Thanks for the bug report. Applied a patch to uim-0.4.1 and uim-0.4.2.1. 
Please test.
Comment 3 Mattias Flodin 2004-10-25 01:07:05 UTC
I have tested this now and it works well. My apologies for the delay. Thank you.
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-25 01:28:01 UTC
No worries, i sent the patch to uim upstream and they included it
from uim-0.4.3. Thanks for the test.