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 <gentoo-user+bounces-112084-garchives=archives.gentoo.org@lists.gentoo.org>) id 1OSTaG-0000bH-QK for garchives@archives.gentoo.org; Sat, 26 Jun 2010 11:30:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0967EE08E9; Sat, 26 Jun 2010 11:29:29 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id BC1FEE08E9 for <gentoo-user@lists.gentoo.org>; Sat, 26 Jun 2010 11:29:28 +0000 (UTC) Received: by wyg36 with SMTP id 36so176035wyg.40 for <gentoo-user@lists.gentoo.org>; Sat, 26 Jun 2010 04:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=h4TYuDkFSgCd5/W5XMtcLoVu9dZ4w4+p/LhHhLzL17Q=; b=Pc0IfpmvEHcFoev/VYN4UDQ9q9sG2y/GTf7nzh7vHSPXVqIS0gqsCz4a7KKWLZwN9H Kj1jnP8QFzOr1nF+E0t0lttFWTSFmovVHjsc0pAoMH3PoO/9OJHNiJOAjDNmIcP9sA4p Lg7xJHfH2hFxC9QngbyeHsja+yD7sNiW7TAZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=cnP18nLPPEFE8vuRR11jbV+TaFMHds1HoxaudopIOvUz7Dag4Uzo1ORCDPpmpnbS0N Vd1tJ5rHsAYiOfAVcSCKHyV4NeBzk60wm0Or/DA5MnGLDKmr8u5iMWd32Q1FaKnDBVjm NVOxSRQporaSynK/3lVhUvvcq5jjj2i0s1ml8= Received: by 10.227.146.3 with SMTP id f3mr1648654wbv.211.1277551768185; Sat, 26 Jun 2010 04:29:28 -0700 (PDT) Received: from (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id b17sm76187537wbd.1.2010.06.26.04.29.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Jun 2010 04:29:27 -0700 (PDT) From: Mick <michaelkintzios@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales Date: Sat, 26 Jun 2010 12:29:15 +0100 User-Agent: KMail/1.13.3 (Linux/2.6.33-gentoo-r2; KDE/4.4.4; x86_64; ; ) References: <1277169274.32558.6.camel@ianto-gentoo-amd.home> <201006261149.20507.michaelkintzios@gmail.com> <201006261310.02677.wonko@wonkology.org> In-Reply-To: <201006261310.02677.wonko@wonkology.org> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9995408.YlFSKE9hYu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201006261229.26879.michaelkintzios@gmail.com> X-Archives-Salt: 582e792e-e86a-44cd-9ff7-ee4799e4d1e2 X-Archives-Hash: 0a2894ddd69dc92e0a15edfea1683e31 --nextPart9995408.YlFSKE9hYu Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Saturday 26 June 2010 12:10:02 Alex Schuster wrote: > Mick writes: > > Oops! This is more complicated that I thought ... > >=20 > > 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=3Den_US.UTF-8 >=20 > 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. >=20 > 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=3D"en_GB.UTF-8" LC_CTYPE=3D"en_GB.UTF-8" LC_NUMERIC=3D"en_GB.UTF-8" LC_TIME=3D"en_GB.UTF-8" LC_COLLATE=3D"C" LC_MONETARY=3D"en_GB.UTF-8" LC_MESSAGES=3D"en_GB.UTF-8" LC_PAPER=3D"en_GB.UTF-8" LC_NAME=3D"en_GB.UTF-8" LC_ADDRESS=3D"en_GB.UTF-8" LC_TELEPHONE=3D"en_GB.UTF-8" LC_MEASUREMENT=3D"en_GB.UTF-8" LC_IDENTIFICATION=3D"en_GB.UTF-8" and in my ~/.bashrc export LANG=3D"en_GB.UTF-8" export LC_CTYPE=3D"en_GB.UTF-8" export LC_NUMERIC=3D"en_GB.UTF-8" export LC_TIME=3D"en_GB.UTF-8" export LC_COLLATE=3D"C" export LC_MONETARY=3D"en_GB.UTF-8" export LC_MESSAGES=3D"en_GB.UTF-8" export LC_PAPER=3D"en_GB.UTF-8" export LC_NAME=3D"en_GB.UTF-8" export LC_ADDRESS=3D"en_GB.UTF-8" export LC_TELEPHONE=3D"en_GB.UTF-8" export LC_MEASUREMENT=3D"en_GB.UTF-8" export LC_IDENTIFICATION=3D"en_GB.UTF-8" but this is what aterm is showing: $ locale LANG=3Den_GB.UTF-8 LC_CTYPE=3D"en_US.UTF-8" LC_NUMERIC=3D"en_US.UTF-8" LC_TIME=3D"en_US.UTF-8" LC_COLLATE=3D"en_US.UTF-8" LC_MONETARY=3D"en_US.UTF-8" LC_MESSAGES=3D"en_US.UTF-8" LC_PAPER=3D"en_US.UTF-8" LC_NAME=3D"en_US.UTF-8" LC_ADDRESS=3D"en_US.UTF-8" LC_TELEPHONE=3D"en_US.UTF-8" LC_MEASUREMENT=3D"en_US.UTF-8" LC_IDENTIFICATION=3D"en_US.UTF-8" LC_ALL=3Den_US.UTF-8 There's no mention of LANG or LC_*US* in /etc/profile.env, /etc/bash/bashrc= ,=20 or anywhere else that I can see. So, where is it being read from? PS. Not sure why LANG=3Den_GB.UTF-8 does not have " " marks like the LC_=20 parameters? =2D-=20 Regards, Mick --nextPart9995408.YlFSKE9hYu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEABECAAYFAkwl5JYACgkQVTDTR3kpaLZNSgCg6WY5130Hn5xG5FN3lTplW3Zz YBYAnRNKvvfdsrZuEtoxM0a62UWB3zwz =oWrM -----END PGP SIGNATURE----- --nextPart9995408.YlFSKE9hYu--