[Bug 229699] Re: "setting locale failed" if using other keyboard layout then language
Anders Hall
hall79 at gmail.com
Thu Jun 13 17:32:03 UTC 2013
I also have noted this bug many times over the years. However, it is
more severe for me in the server versions were we require utf8 (and only
need one language). In a server/client configuration this can really
mess things up (it does create severe charset bugs).
Apparently working solutions differs both between ubuntu versions and
within the same version, according to users. E.g., for me no solution
with locale-gen etc will work anymore (lots of them on the Internet) -
when starting a fresh 12.04 build from ubuntu.com as mentioned
previously (on amazon in my latest case).
The only viable solution i have found is to set "/etc/default/locale",
then manually and run "dpkg-reconfigure locales" (with log-off/exit and
login after). What is missing is ALWAYS variable LANGUAGE and LC_ALL (on
server). What is worse is that apt-get often removes manual fixes to
this problem when running apt-get dist-upgrade.
example locale file i altered (note use versions such as "en_US.UTF8" is
not stable it seems, even though locale -a list it exactly that way).
LANGUAGE=en_US:en
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
Also, does anyone know what the difference between variable "LANGUAGE"
and "LANG" is? I really would like to know if i can set ALL handling to
utf8 (which LANGUAGE appears to be missing).
NOTE 2: must be many more duplicate bugs for this on debian/ubuntu. Is
this the only one (few admin/bugfixes/sysnotes as far as i can se)?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-installer in Ubuntu.
https://bugs.launchpad.net/bugs/229699
Title:
"setting locale failed" if using other keyboard layout then language
Status in “debian-installer” package in Ubuntu:
Confirmed
Bug description:
I am experiencing this problem since the very early days I began using
Ubuntu (4.10), and it's still there in 8.04. I get the following
messages on a clean, fresh installation when running i.e. perl-
version:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "de_DE at euro",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
The problem only happens if you choose a different keyboard layout
than the language. In my case, I want to have everything in English
but I am using a german keyboard layout. I guess this problem is
related to the installer, since it does not generate the correct
locales.
Here is some output from just running "locale":
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=de_DE at euro
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
And here's the output from "locale -a":
locale: Cannot set LC_CTYPE to default locale: No such file or directory
C
en_US.utf8
POSIX
As you can see, the de_DE at euro locale simply did not get generated.
Seems like other people
(http://forums.vpslink.com/showthread.php?t=286,
http://ubuntuforums.org/showthread.php?t=159177) experienced this
problem as well. The solution here is simply to generate this missing
locale:
locale-gen de_DE at euro
But actually the "normal human being" would be happy if the installer
would have done this for him/her already.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/229699/+subscriptions
More information about the foundations-bugs
mailing list