#478145 im-switch Does not configure scim to support current locale

Package:
scim
Source:
scim
Description:
smart common input method platform
Submitter:
"Bohan Huang"
Date:
2010-04-29 11:27:07 UTC
Severity:
wishlist
#478145#5
Date:
2008-04-27 13:54:36 UTC
From:
To:
*** 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

#478145#10
Date:
2008-04-27 14:35:27 UTC
From:
To:
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.

#478145#23
Date:
2008-04-28 10:44:15 UTC
From:
To:
Sorry, will read documentation more throughly next time.

Thanks for explaining the reasons why the user should edit global manually

Bohan

#478145#28
Date:
2008-04-28 18:39:21 UTC
From:
To:
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

#478145#33
Date:
2009-08-07 21:59:18 UTC
From:
To:
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

#478145#38
Date:
2009-08-07 22:09:21 UTC
From:
To:
2009/8/8 Debian Bug Tracking System <owner@bugs.debian.org>:
#478145#43
Date:
2010-04-29 11:20:19 UTC
From:
To:
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