Mick writes:

> On Saturday 26 June 2010 11:40:14 Mick wrote:

> > 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?
> 
> 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.

        Wonko

Reply via email to