[Bug 395335] Re: General locale/gettext issues
Beni Cherniavsky
cben at users.sf.net
Thu May 17 07:36:23 UTC 2012
I can repro a crash on 12.04 when LANG points to a non-installed locale:
$ unset LANGUAGE LANG LC_ALL LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
$ lolcale
No command 'lolcale' found, did you mean:
Command 'locale' from package 'libc-bin' (main)
lolcale: command not found
$ export LANG=uk_UA.utf8
$ locale
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
LANG=uk_UA.utf8
LANGUAGE=
LC_CTYPE="uk_UA.utf8"
LC_NUMERIC="uk_UA.utf8"
LC_TIME="uk_UA.utf8"
LC_COLLATE="uk_UA.utf8"
LC_MONETARY="uk_UA.utf8"
LC_MESSAGES="uk_UA.utf8"
LC_PAPER="uk_UA.utf8"
LC_NAME="uk_UA.utf8"
LC_ADDRESS="uk_UA.utf8"
LC_TELEPHONE="uk_UA.utf8"
LC_MEASUREMENT="uk_UA.utf8"
LC_IDENTIFICATION="uk_UA.utf8"
LC_ALL=
$ lolcale
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:
command-not-found version: 0.2.44
After install Ukrainian support, it does work:
$ sudo apt-get install language-pack-uk
...
$ lolcale
No command 'lolcale' found, did you mean:
Command 'locale' from package 'libc-bin' (main)
lolcale: command not found
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to command-not-found in Ubuntu.
https://bugs.launchpad.net/bugs/395335
Title:
General locale/gettext issues
Status in command-not-found handler:
Invalid
Status in “command-not-found” package in Ubuntu:
Fix Released
Bug description:
This bug is intended to track all the locale/gettext issues that
*CAUSE A CRASH* of the program.
To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/395335/+subscriptions
More information about the foundations-bugs
mailing list