Setting LANG env on Ubuntu
Diego Iastrubni
elcuco at kde.org
Sat Sep 26 21:25:38 IDT 2009
On Friday 25 September 2009 00:15:40 Shachar Shemesh wrote:
> I don't know about Ubuntu, but in Debian these variables are set either
> in /etc/default/locale or /etc/environment. Also, the "official" way of
> changing those is by doing "dpkg-reconfigure locales" as root.
On Debian/Ubuntu, "dpkg-reconfigure locales" is a light wrapper around
localgegen (I think, I am currently on Fedora...). On Mandriva, you can
install each one of those locales by an rpm instead of generating them on your
machine. If you want to change the locale of your system, this is a mandatory
step.
However it does not change the locale. What I usually do (works on
Debian/Ubuntu/Mandriva/Fedora) is:
locale > ~/.i18n
and then edit ~/.i18n as needed. Here it is on my machine:
[elcuco at pinky ~] cat /home/elcuco/.i18n
LANG=en_US.UTF-8
LC_CTYPE="he_IL.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="he_IL.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=
More information about the Linux-il
mailing list