Package: im-switch Version: 1.16 Severity: important Tags: patch Hi,
K. Sethu brought this inconsistent behaviour to my attention [1]. im-switch(8): ------------------------------------------------------------------------ im-switch [-v][-z ll_CC] -s inputmethodname ... -z ll_CC Set up the input method for X run under ll_CC locale (ISO 639 / ISO 3188). When setting for all locales, use all_ALL as the quasi-locale value here. ------------------------------------------------------------------------ If im-switch is run with ll_CC set to all_ALL and run again with ll_CC set to the real locale, e.g. en_AU, then the "inputmethodname" set for en_AU will override the "inputmethodname" set for all_ALL. One would expect the inverse behaviour where the "inputmethodname" set for all_ALL would override the "inputmethodname" set for en_AU. Fixing this problem is quite straightforward. Simply, search for the quasi-locale, all_ALL, symlink before the real locale, en_AU: ------------------------------------------------------------------------ --- 80im-switch.bak 2007-12-25 01:39:19.000000000 +1100 +++ /etc/X11/Xsession.d/80im-switch 2009-01-28 02:29:39.000000000 +1100 @@ -30,10 +30,10 @@ echo "Setting IM through im-switch for locale=$LNG." # Source first found configuration under $LNG locale -for f in "$HOME/.xinput.d/${LNG}" \ - "$HOME/.xinput.d/all_ALL" \ - "/etc/X11/xinit/xinput.d/${LNG}" \ +for f in "$HOME/.xinput.d/all_ALL" \ + "$HOME/.xinput.d/${LNG}" \ "/etc/X11/xinit/xinput.d/all_ALL" \ + "/etc/X11/xinit/xinput.d/${LNG}" \ "/etc/X11/xinit/xinput.d/default" ; do if [ -f "$f" -a -r "$f" ]; then echo "Start IM through $f linked to $(readlink -f $f)." ------------------------------------------------------------------------ cya, # [1] http://sourceforge.net/mailarchive/message.php?msg_name=ce3a6c680811210331l592d40devc5da76e22945d675%40mail.gmail.com -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org