From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OSU3Q-0003PK-JI for garchives@archives.gentoo.org; Sat, 26 Jun 2010 12:00:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBE2FE090B; Sat, 26 Jun 2010 11:59:09 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id A42EDE090B for ; Sat, 26 Jun 2010 11:59:09 +0000 (UTC) Received: from weird.localnet (p4FF077BB.dip.t-dialin.net [79.240.119.187]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id 0CD154A800C for ; Sat, 26 Jun 2010 13:59:09 +0200 (CEST) From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales Date: Sat, 26 Jun 2010 13:59:07 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.33-tuxonice-r2; KDE/4.4.4; x86_64; ; ) References: <1277169274.32558.6.camel@ianto-gentoo-amd.home> <201006261310.02677.wonko@wonkology.org> <201006261229.26879.michaelkintzios@gmail.com> In-Reply-To: <201006261229.26879.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201006261359.07852.wonko@wonkology.org> X-Archives-Salt: 00e25d10-e133-4305-aa92-73d4adfe62fa X-Archives-Hash: 35e1b378f3a13af95505ac6b3526317d 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