On Tuesday 22 June 2010 17:14:13 Christopher Swift wrote: > Ar Maw, 2010-06-22 am 14:38 +0100, ysgrifennodd Mick: > > I'm also interested in this - although my question is probably simpler: > > > > I would like to use en_GB but I do not undestand why running 'locale' > > as a plain user shows: > > > > $ locale > > LANG=en_US.UTF-8 > > 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=en_US.UTF-8 > > > > why when running it as root: > > > > # locale > > LANG= > > LC_CTYPE="POSIX" > > LC_NUMERIC="POSIX" > > LC_TIME="POSIX" > > LC_COLLATE="POSIX" > > LC_MONETARY="POSIX" > > LC_MESSAGES="POSIX" > > LC_PAPER="POSIX" > > LC_NAME="POSIX" > > LC_ADDRESS="POSIX" > > LC_TELEPHONE="POSIX" > > LC_MEASUREMENT="POSIX" > > LC_IDENTIFICATION="POSIX" > > LC_ALL= > > > > > > I do not have set a /etc/env.d/02locale yet, so where is my plain user > > locale being read from? > > Your plain user locale is usually read from ~/.bashrc, this can be set > to en_GB by having the following lines: > export LANG="en_GB.UTF-8" > export LC_COLLATE="C"
I have not exported any locale in my ~/.bashrc, so should a plain user locale reflect what's in /etc/env.d/02locale? I added /etc/env.d/02locale as you show above, but my plain user still shows all settings as "en_US.UTF-8" ... where is this US setting read from? Thanks, -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.