[Pkg-ime-devel] Bug#758385: ibus: Cannot choose any input method on ibus-setup
Osamu Aoki
osamu at debian.org
Sun Sep 7 05:31:04 UTC 2014
Hi,
(My mail system was broken recently. Sorry for slow response.)
On Sun, Aug 24, 2014 at 12:30:53PM +0900, Kunihiko Imai wrote:
Thanks for explaining the issue.
> File "/usr/share/ibus/setup/enginedialog.py", line 327, in set_engines
> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
> To solve this bug in Debian layer, I think,
o Describe "require to generate en_US.UTF-8 locale database"
or install locales-all in README.Debian
o Remind user with bug script if they are missing en_US.UTF-8.
These are safe bet.
> o Or guarantee to generate en_US.UTF-8 locale database
> with packaging system
This is too invasive to locale package and may be policy violation.
> o Or patch setup/enginedialog.py:
Debian installer supports C.UTF-8 locale but installed Debian system..
aha. I see /usr/share/i18n/locales/C is in UTF-8 now. POSIX and C are
different. hmmmm
> --- setup/enginedialog.py.orig 2014-08-23 18:06:10.982463613 +0900
> +++ setup/enginedialog.py 2014-08-23 18:06:28.226422031 +0900
> @@ -324,7 +324,7 @@
>
> # Retrieve Untranslated language names.
> backup_locale = locale.setlocale(locale.LC_ALL, None)
> - locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
> + locale.setlocale(locale.LC_ALL, 'C.UTF-8')
Hmmmmm interesting. C.UTF-8 always available? Changelog has:
"Add patches/localedata/locale-C.diff to create a C locale." 01 May 2011
but /usr/share/i18n/SUPPORTED does not have such locale.
I can not do dpkg-reconfigure to set system only to use C.UTF-8 by
removing all locales (C is not the choice there). It
complains;
$ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or
directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or
directory
Maybe, update-locale needs some fix too.
Can you explain how can I have C.UTF-8 locale only system?
Any place explaing C.UTF-8 (except in changelog).?
What is the difference between POSIX and C now. What happens if LANG,
LANGUAGE, LC_ALL are set to NULL or C. C? POSIX. I do not see choice
between C.UTF-8, C, POSIX in locale package reconfiguration.
Osamu
> Debian supports C.UTF-8 locale. But some other distro seems not to support
> yet. ( https://bugzilla.redhat.com/show_bug.cgi?id=902094 )
> So this patch should not put upstream at now, I think.
I see.
Osamu
More information about the Pkg-ime-devel
mailing list