Hi Mateusz,
Thanks for your effort to improve Ubuntu by reporting those
observations. I'm afraid you have misunderstood how it works, though.
This is what the 'locale' command currently outputs on my box:
LANG=en_US.UTF-8
LANGUAGE=
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="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=
A quoted value means that the variable is not set. Instead the value of
LANG is inherited when the variable is queried for getting a locale.
Consequently, the above output tells us that LANG is the only locale
related environment variable that is set explicitly.
[gunnar@gunnar-laptop ~]$ echo $LANG
en_US.UTF-8
[gunnar@gunnar-laptop ~]$ echo $LC_TIME
[gunnar@gunnar-laptop ~]$
Let's take a date related example to show that it works as I just wrote.
[gunnar@gunnar-laptop ~]$ date +%x
07/31/2011
That's today's date in the American way. Now let's see what happens if
we change LANG:
[gunnar@gunnar-laptop ~]$ LANG=sv_SE.UTF-8
[gunnar@gunnar-laptop ~]$ date +%x
2011-07-31
As you can see, it gave us today's date in an ISO 8601 compliant format.
Just to be sure, let's have confirmed that LC_TIME is still unset:
[gunnar@gunnar-laptop ~]$ echo $LC_TIME
[gunnar@gunnar-laptop ~]$
If you, in the light of the above, think that Ubuntu does not set
environment variables properly, please let us know.
** Changed in: language-selector (Ubuntu)
Status: New => Incomplete
** Changed in: language-selector (Ubuntu)
Assignee: (unassigned) => Gunnar Hjalmarsson (gunnarhj)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/817176
Title:
Language selector does not affect all system aspects
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/817176/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs