*** Please type your report below this line *** when I execute 'im-switch -z en_AU -s scim' as both root and normal user, the en_AU.UTF-8 locale is not added to /etc/scim/global like this: /SupportedUnicodeLocales = en_AU.UTF-8, en_US.UTF-8 instead it remains the default: /SupportedUnicodeLocales = en_US.UTF-8 This causes scim not to work in my default locale, which is what im-switch it supposed to configure the input method to do. Once I edit /etc/scim/global manually it works as expected. I think im-switch should do this automatically
reassign 478145 scim tags 478145 - patch severity 478145 wishlist tags 478145 wontfix thanks I do not see your patch ??? This is by design. It is a feature! Yes. Did you read README.Debian.gz for SCIM. How do you expect me to know default locale? GDM can switch it every start of X Window. From PAM? .... Too much guessing is bad. SCIM upstream likes to keep this default. (I wish I can set default to /SupportedUnicodeLocales = *_*.UTF-8) Since user may be switching locale, I am not so keen to automatically adding such thing. It is well documented in /u/s/d/scim/README.Debian.gz. I do not want to make im-switch to be any more complicated. Osamu FYI: If we add such featutue, it is done in scim package. Not in im-switch. im-switch calls hook script provided by scim.
Sorry, will read documentation more throughly next time. Thanks for explaining the reasons why the user should edit global manually Bohan
Hi, No problem. Although I marked as wontfix, I tried a quick hack. So far it is not working. Just as placeholder, I attache what I did as patch. Ming, can you fix this? Osamu
How is it that im-switch does not know the locale to add? Whenever you use it you have to explicitly choose the locale for which you are choosing the input method, right? The only exception is if you switch the default for all locales and then adding a default entry for all UTF-8 locale would be appropriate. Thanks Michal
2009/8/8 Debian Bug Tracking System <owner@bugs.debian.org>:
Is there any problem with something like:
cat /etc/locale.gen | grep UTF-8$ | sed -e 's/^# //' | cut -d' ' -f 1 |
{ echo -n /SupportedUnicodeLocales = ''; read x && echo -n "$x" ; while
read x ; do echo -n ", $x" ; done ; } >> /etc/scim/global