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 1OR6vS-0003yV-Bh for garchives@archives.gentoo.org; Tue, 22 Jun 2010 17:06:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC352E0769 for ; Tue, 22 Jun 2010 17:06:17 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 2796EE07AA for ; Tue, 22 Jun 2010 16:14:18 +0000 (UTC) Received: by wwf26 with SMTP id 26so2390988wwf.40 for ; Tue, 22 Jun 2010 09:14:17 -0700 (PDT) Received: by 10.227.142.13 with SMTP id o13mr6223916wbu.71.1277223257488; Tue, 22 Jun 2010 09:14:17 -0700 (PDT) Received: from [192.168.1.65] (host86-172-82-109.range86-172.btcentralplus.com [86.172.82.109]) by mx.google.com with ESMTPS id t15sm15905983wbc.17.2010.06.22.09.14.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Jun 2010 09:14:16 -0700 (PDT) Sender: Christopher Swift Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales From: Christopher Swift To: gentoo-user@lists.gentoo.org In-Reply-To: References: <1277169274.32558.6.camel@ianto-gentoo-amd.home> Content-Type: text/plain; charset="UTF-8" Date: Tue, 22 Jun 2010 17:14:13 +0100 Message-ID: <1277223253.1816.3.camel@tonmawr> 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 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: b615bd78-4315-4117-baf0-8cbfd9f324eb X-Archives-Hash: 58631b1dc3518fee9f07ba92e1d9a3b8 Ar Maw, 2010-06-22 am 14:38 +0100, ysgrifennodd Mick: > I'm also interested in this - although my question is probably simpler: > > I would like to use en_GB but I do not undestand why running 'locale' > as a plain user shows: > > $ locale > LANG=en_US.UTF-8 > LC_CTYPE="en_US.UTF-8" > LC_NUMERIC="en_US.UTF-8" > LC_TIME="en_US.UTF-8" > LC_COLLATE="en_US.UTF-8" > LC_MONETARY="en_US.UTF-8" > LC_MESSAGES="en_US.UTF-8" > LC_PAPER="en_US.UTF-8" > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT="en_US.UTF-8" > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL=en_US.UTF-8 > > why when running it as root: > > # locale > LANG= > LC_CTYPE="POSIX" > LC_NUMERIC="POSIX" > LC_TIME="POSIX" > LC_COLLATE="POSIX" > LC_MONETARY="POSIX" > LC_MESSAGES="POSIX" > LC_PAPER="POSIX" > LC_NAME="POSIX" > LC_ADDRESS="POSIX" > LC_TELEPHONE="POSIX" > LC_MEASUREMENT="POSIX" > LC_IDENTIFICATION="POSIX" > LC_ALL= > > > I do not have set a /etc/env.d/02locale yet, so where is my plain user > locale being read from? Your plain user locale is usually read from ~/.bashrc, this can be set to en_GB by having the following lines: export LANG="en_GB.UTF-8" export LC_COLLATE="C" This will only affect that user but if you want to define a locale globally you have to adjust the file in /etc/env.d/02locale to have the top two lines read this: LANG="en_GB.UTF-8" LC_COLLATE="C" After you've done that do "env-update && source /etc/profile" for the global settings or just source ~/.bashrc for the user's settings. Hope this helps -- Cofion Christopher Swift (ianto) - christopher dot swift at linux dot com