Problem with locale in ubuntu 10.10
NoOp
glgxg at sbcglobal.net
Tue Apr 5 00:39:45 UTC 2011
On 04/03/2011 02:57 PM, Christof Buechi wrote:
> Hi Everybody,
>
> (Its the first time i write on this list - I'm sorry about mistakes)
>
> I've got a big problem with language settings. I google a lot, but cannot
> find the perfect solution. I know there are a lot of results of this topic..
> I tried something with "locale -a", "dpkg-reconfigure locale" and also with
> "export LC_ALL="de_CH.utf8"".
> I haven't got a guess why i cannot solve this problem.
>
> Maybe somebody have some deeper experience with this problem, and can help
> me a little bit ?
...
> -----------------------------------------------------------
> locale (console)
> LANG=de_DE
> LANGUAGE=de_DE:en
...
> LC_ALL=de_CH.utf8
If you are using multiple language/region settings (de_DE & de_CH) then
you should unset LC_ALL. Meaning that LC_ALL should be:
LC_ALL=
rather than LC_ALL=de_CH.utf8.
https://help.ubuntu.com/community/EnvironmentVariables
<quote>
LC_ALL
This variable serves as a powerful override over all the other locale
environment variables. When its value is set, applications use that
value to determine which locale settings to use regardless of the values
of the other variables
</quote>
For example, if I were to set up a system with English (US) as the
default plus German (Swiss) via System|Administration|Languages, an
login using German but with English 'Regional Formats' locale would be:
$ locale
LANG=en_US.UTF-8
LANGUAGE=de:en_US:en
LC_CTYPE="en_US.UTF-8"
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=de_DE.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=
Now if I set the 'System|Administration|Languages|Regional Formats' to
'Deutsch (Schweiz) and then I log out & log back in using German, it is:
locale
LANG=de_CH.UTF-8
LANGUAGE=de:en_US:en
LC_CTYPE="de_CH.UTF-8"
LC_NUMERIC="de_CH.UTF-8"
LC_TIME="de_CH.UTF-8"
LC_COLLATE="de_CH.UTF-8"
LC_MONETARY="de_CH.UTF-8"
LC_MESSAGES=de_DE.UTF-8
LC_PAPER="de_CH.UTF-8"
LC_NAME="de_CH.UTF-8"
LC_ADDRESS="de_CH.UTF-8"
LC_TELEPHONE="de_CH.UTF-8"
LC_MEASUREMENT="de_CH.UTF-8"
LC_IDENTIFICATION="de_CH.UTF-8"
LC_ALL=
Try unsetting LC_ALL:
$ unset LC_ALL
and see if that works for you.
More information about the ubuntu-users
mailing list