On Saturday 26 June 2010 12:10:02 Alex Schuster wrote:
> Mick writes:

> > Oops!  This is more complicated that I thought ...
> > 
> > If, always as a plain user, I use aterm then /etc/env.d/02locale is
> > read and LANG is en_GB.UTF-8.  However, if I use xterm it is still
> > LANG=en_US.UTF-8
> 
> Your aterm is configured as a login shell, and as such reads /etc/profile,
> which reads /etc/profile.env (and ~/.[bash]profile). xterm is not a login
> shell, and reads /etc/bash/bashrc (and ~/.bashrc). You can call xterm with
> the -ls option to make it  alogin shell. For konsole, I have set it to
> execute bash -l to make it a login shell.
> 
> Another workaround might be to read /etc/profile.env in your .bashrc, or
> in /etc/bash/bashrc.

Hmm... I've added all this in my /etc/env.d/02locale:

LANG="en_GB.UTF-8"
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="C"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"

and in my ~/.bashrc

export LANG="en_GB.UTF-8"
export LC_CTYPE="en_GB.UTF-8"
export LC_NUMERIC="en_GB.UTF-8"
export LC_TIME="en_GB.UTF-8"
export LC_COLLATE="C"
export LC_MONETARY="en_GB.UTF-8"
export LC_MESSAGES="en_GB.UTF-8"
export LC_PAPER="en_GB.UTF-8"
export LC_NAME="en_GB.UTF-8"
export LC_ADDRESS="en_GB.UTF-8"
export LC_TELEPHONE="en_GB.UTF-8"
export LC_MEASUREMENT="en_GB.UTF-8"
export LC_IDENTIFICATION="en_GB.UTF-8"

but this is what aterm is showing:

$ locale
LANG=en_GB.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

There's no mention of LANG or LC_*US* in /etc/profile.env, /etc/bash/bashrc, 
or anywhere else that I can see.  So, where is it being read from?

PS. Not sure why LANG=en_GB.UTF-8 does not have " " marks like the LC_ 
parameters?
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to