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 1OSXJC-0006qC-6u for garchives@archives.gentoo.org; Sat, 26 Jun 2010 15:28:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B21E2E0AAD; Sat, 26 Jun 2010 15:27:53 +0000 (UTC) Received: from karnak.local (cpc2-lutn10-2-0-cust603.9-3.cable.virginmedia.com [81.97.90.92]) by pigeon.gentoo.org (Postfix) with ESMTP id 7E481E0AAD for ; Sat, 26 Jun 2010 15:27:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id BCDDB3004 for ; Sat, 26 Jun 2010 16:27:52 +0100 (BST) X-Virus-Scanned: by amavisd-new using ClamAV at karnak.local Received: from karnak.local ([127.0.0.1]) by localhost (karnak.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0xT9lDyL5j7W for ; Sat, 26 Jun 2010 16:27:49 +0100 (BST) Received: from karnak.local (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id A68573003 for ; Sat, 26 Jun 2010 16:27:49 +0100 (BST) Date: Sat, 26 Jun 2010 16:27:42 +0100 From: David W Noon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales Message-ID: <20100626162742.1995ae57@karnak.local> In-Reply-To: References: Organization: Luton Operatic Society X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; i686-pc-linux-gnu) 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/P+TJ/V9iXc1hTKNstADrur="; protocol="application/pgp-signature" X-Archives-Salt: a342d533-99b4-49b3-a942-6244675fc552 X-Archives-Hash: 1462b64f14fd4360c443e3d171e63307 --Sig_/P+TJ/V9iXc1hTKNstADrur= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 26 Jun 2010 13:40:01 +0200, Mick wrote about Re: [gentoo-user] Questions regarding the usage of multiple locales: [snip] >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" Did you run env-update afterwards? I ditched all those /etc/env.d settings for locale, and put mine in /etc/profile.d/local.sh as follows: <---------><---------><---------><---------><---------><---------> # Temporary files go to the RAMDisk. export TMPDIR=3D'/tmp' # Define our local squid proxy. export http_proxy=3D'http://localhost:8080' export ftp_proxy=3D'http://localhost:8080' export RSYNC_PROXY=3D'localhost:8080' # The OpenSSL random seed lives here: export RANDFILE=3D'/.rnd' # Set the zsh FTP commands to use passive mode export ZFTP_PREFS=3D'P' # If the user has a private bin directory, prepend it to the PATH. if [ -d "$HOME/bin" ]; then export PATH=3D"$HOME/bin:$PATH" fi # Set a sensible locale, if possible. if [ -d '/usr/share/locale/en_GB' ]; then export LC_ALL=3D'en_GB.utf8' export LANG=3D'en_GB.utf8' export LANGUAGE=3D'en_GB.utf8' else export LC_ALL=3D'C' unset LANG LANGUAGE fi <---------><---------><---------><---------><---------><---------> This gives me a single point of maintenance for several system customizations. Also, it allows me to use conditional logic to set sensible values. --=20 Regards, Dave [RLU #314465] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D dwnoon@ntlworld.com (David W Noon) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --Sig_/P+TJ/V9iXc1hTKNstADrur= Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAkwmHHUACgkQc9/LpQ70v4/A6wCgkdGZoYDqoDyKK00UZWy8Q01y aggAnif7BoEqcfaoPLMojkVctsYtZYrg =/H75 -----END PGP SIGNATURE----- --Sig_/P+TJ/V9iXc1hTKNstADrur=--