Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217375 - app-i18n/scim-1.4.7: Scim doesn't work in xterm for locale != en_US.UTF-8
Summary: app-i18n/scim-1.4.7: Scim doesn't work in xterm for locale != en_US.UTF-8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-12 10:36 UTC by Matthias B.
Modified: 2012-06-21 14:32 UTC (History)
3 users (show)

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 Matthias B. 2008-04-12 10:36:57 UTC
Scim doesn't work in xterm if you're using a locale that isn't listed in /etc/scim/global which currently lists only en_US.UTF-8. GTK apps don't seem to be affected from this problem which makes it so confusing, because you see that Scim is working fine everywhere, just not in xterm.

I don't know the purpose of this configuration setting. Why would you want to restrict Scim to certain locales only? If I don't want to use Scim I don't launch it. If there's a setting that will allow  all *.UTF-8 locales to be accepted, Gentoo should use that by default. Otherwise it may be possible to patch out the respective check.

At the very least the ebuild should print an elog that informs the user that he'll have to add all of his required locales to /etc/scim/global if he wants Scim to work in xterm (and probably other plain X11 apps, too).

Reproducible: Always

Steps to Reproduce:
1. LC_ALL=de_DE.UTF-8 uxterm
2. Try to use Scim => doesn't work (assuming de_DE.UTF-8 is not listed in /etc/scim/global)
3. LC_ALL=en_US.UTF-8 uxterm
4. Scim works
5. Add de_DE.UTF-8 to /etc/scim/global
6. LC_ALL=de_DE.UTF-8 uxterm
7. Scim now works here, too.
Comment 1 Matthias B. 2008-04-12 10:38:41 UTC
"Scim works" in my case means "I can input Japanese using Scim-anthy"
Comment 2 Petr Pisar 2008-09-24 15:06:41 UTC
I can confirm this issue.

However with correct setting starting xterm takes a lot of time because it tries to list all fonts with exotic charsets via X11.
Comment 3 Thomas Dickey 2009-05-05 20:41:27 UTC
Patch #242 - 2009/2/15
     * change default XIM font from "*" to "fixed" to improve startup time 
       in zh_CN.UTF-8 locale (Mike Fabian, SuSE Bugzilla #464930).
Comment 4 Pacho Ramos gentoo-dev 2010-02-16 12:58:31 UTC
Still valid with app-i18n/scim-1.4.9 ?
Comment 5 Petr Pisar 2010-02-16 13:18:59 UTC
Yes, still the same problem in app-i18n/scim-1.4.9.
Comment 6 Pacho Ramos gentoo-dev 2010-02-16 13:44:29 UTC
But it's per design, I mean, it's really an upstream problem, please read the following links:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404546
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478145

I have also checked other distributions packages (opensuse, fedora, debian, ubuntu and mandriva) and I haven't found any fix for it.

I think that we could "fix" this simply adding an "elog" entry in ebuild for informing scim users about what to do and how to configure this

Do you know about a better solution (or patch)? 

Thanks
Comment 7 Naohiro Aota gentoo-dev 2012-06-21 14:32:42 UTC
elog message added.