retitle 404546 Give out warnings if set to XIM with non-en_US UTF-8 encoding 
but no proper SupportedUnicodeLocales setting
tags 404546 confirmed upstream
severity 404546 wishlist
thanks

On Tue, Dec 26, 2006 at 02:50:43PM +0800, Enrico Zini wrote:
> Hello,
> 
> I'm using the [EMAIL PROTECTED] locale, but I need SCIM to occasionally type
> other scripts.
> 
> I use im-switch and had to use scim-immodule instead of scim, because
> scim would not start.  scim-immodule does not work with OpenOffice
> and QT applications, so I wanted to use scim.
> 
> Andrew Lee found out that I should add it_IT.UTF-8 to
> /SupportedUnicodeLocales in /etc/scim/global, as in:
> 
>    /SupportedUnicodeLocales = en_US.UTF-8,it_IT.UTF-8
> 
> I did it and indeed now it works.

Yes this is a limitation of scim and is currently documented in
README.Debian.

> Shouldn't SCIM support all UTF-8 locales by default?  From the moment I
> type "im-switch -s scim" I'd expect that scim is set to start on my
> locale, or at least I'd like to get a message telling me how to
> configure scim for my locale.
> 
> It's not just people from United States that need to type other
> scripts...

I agree this is rather confusing and should be improved.  However (1)
this is upstream behavior, and I don't know the code enough to change
it;  (2) im-switch can set input methods for all_ALL which matchs all
locales, and for this at least there is no way to know which locale the
user is going to use scim in;  (3) this SupportedUnicodeLocales setting
can be set both in /etc/scim/global and ~/.scim/global, adding the fact
that im-switch can write settings both to /etc/X11/xinit/xinput.d/ and
~/.xinput.d/, the logic to test the setting and give out warnings would
be quite complicated.

Any ideas about how to fix this(or better, patches) would be
appreciated.

Ming
2006.12.26


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to