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 1OSTHP-0007Fx-Ee for garchives@archives.gentoo.org; Sat, 26 Jun 2010 11:10:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7220EE08EA; Sat, 26 Jun 2010 11:10:05 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A76CE08EA for ; Sat, 26 Jun 2010 11:10:05 +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 978F94A800C for ; Sat, 26 Jun 2010 13:10:04 +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:10:02 +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> <201006261140.23888.michaelkintzios@gmail.com> <201006261149.20507.michaelkintzios@gmail.com> In-Reply-To: <201006261149.20507.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: <201006261310.02677.wonko@wonkology.org> X-Archives-Salt: 35c49506-3826-48c9-a8ea-dd9462c4f602 X-Archives-Hash: eeaf3340790d320e1dc2bb7865904dfe 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