Mick writes:

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

> > Your aterm is configured as a login shell, and as such reads

At least I thought so, what else could be the cause. But I just emerged 
aterm, and the default is also to be not a login shell. There is a -ls 
option for this, or the loginShell resource. Same as for xterm. So, there 
should be no difference in those two shells. Maybe you started them with a 
desktop shortcut that has extra options in it?
When debugging such things, I modify the startup files and add statements 
like '[[ $- == *i* ]] echo .bashrc', so I see which ones get read. The [[ 
]] stuff makes this happen in interactive shells, so scripts are not 
confused by the text output.

When starting one terminal from inside another, environment variables will 
be 

> > /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"
[...]
> 
> and in my ~/.bashrc
> 
> export LANG="en_GB.UTF-8"
> export LC_CTYPE="en_GB.UTF-8"
[...]
> 
> but this is what aterm is showing:
> 
> $ locale
> LANG=en_GB.UTF-8
> LC_CTYPE="en_US.UTF-8"
[...]
> LC_ALL=en_US.UTF-8

Still looks like login shell behaviour, or else ~/.bashrc should have been 
read.

> There's no mention of LANG or LC_*US* in /etc/profile.env,

Did you run env-update.sh? This puts all the stuff in /etc/env.d/ into 
/ect/profile.env.

> /etc/bash/bashrc, or anywhere else that I can see.  So, where is it
> being read from?

Hmm. Does grep -r LC_ALL /etc find something?


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

Seems to be normal behaviour of the locale command.

Sorry, I don't know what's going on there.

        Wonko

Reply via email to