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 1OSZ0u-0002Jy-K7 for garchives@archives.gentoo.org; Sat, 26 Jun 2010 17:17:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3886AE0B22; Sat, 26 Jun 2010 17:17:25 +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 DA38DE0B22 for ; Sat, 26 Jun 2010 17:17:24 +0000 (UTC) Received: by wyg36 with SMTP id 36so336002wyg.40 for ; Sat, 26 Jun 2010 10:17:24 -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=mFWgyHtzNqw0CthHuIZ/to/qSXS52Nn839irjRCqoKE=; b=WiAGD/0F4E71ey9WoYmZEOHK/kmbrtxY+bFNhTIjjGYrW6mFTvqdcoipZadlNa0QSe EsJRmZ0361opId4O0CpiWh223+DcCWPEE3SRX0NLCsb09S5Uza6cemJjLwCMP/M0aP4V uKBklp0be2n26v+D/RjKT3rC6KlfmgthLptAY= 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=DP+w17oUNw1tFnlUifcUyHFaExZ4+E2uMW59Kjlph3Rmtt82or2UgMbI2asa/WKtov Q/y0cg3NSfhXT/ABFpIzjz+2xsdKS4lyzMtAyErL87KQgKN/scUyqnSoi4byfFHjzafD 7t1qsjWQsQRGcdtRTvuAZy1pXXLv+OWhpyvZs= Received: by 10.227.132.134 with SMTP id b6mr1941530wbt.80.1277572644218; Sat, 26 Jun 2010 10:17:24 -0700 (PDT) Received: from (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id b17sm28079175wbd.7.2010.06.26.10.17.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Jun 2010 10:17:23 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales Date: Sat, 26 Jun 2010 18:17:11 +0100 User-Agent: KMail/1.13.3 (Linux/2.6.33-gentoo-r2; KDE/4.4.4; x86_64; ; ) References: <20100626162742.1995ae57@karnak.local> <4C261F85.3070500@gmail.com> In-Reply-To: <4C261F85.3070500@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: multipart/signed; boundary="nextPart1306333.7h2bPXTJzY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201006261817.23136.michaelkintzios@gmail.com> X-Archives-Salt: 6764c056-2984-44b9-9416-f3b573b30fd6 X-Archives-Hash: e43aa5c9af03fb20a9ea06a072e0211f --nextPart1306333.7h2bPXTJzY Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Saturday 26 June 2010 16:40:53 Dale wrote: > David W Noon wrote: > > On Sat, 26 Jun 2010 13:40:01 +0200, Mick wrote about Re: [gentoo-user] > > Questions regarding the usage of multiple locales: > >=20 > > [snip] > >=20 > >> Hmm... I've added all this in my /etc/env.d/02locale: > >>=20 > >> 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" > >=20 > > Did you run env-update afterwards? > >=20 > > I ditched all those /etc/env.d settings for locale, and put mine >=20 > > in /etc/profile.d/local.sh as follows: > << SNIP >> >=20 > Something I run into sometimes, if you are using KDE, log out then log > back in. I run into this pretty regular and usually forget. I have > been sort of half reading this thread and seem to recall reading you are > using KDE. I know this applies to when you change the groups a user is > in. Ran into that the other day. This may apply to other desktops as > well. I only have KDE here. Just thought I would mention just in case. Thank you all for your suggestions. =46irst of all I'd like to apologise to Christopher because I did not inten= d to=20 hi-jack his thread (I was hoping I had something basic wrong and was lookin= g=20 for a quick fix). I have run 'env-update && source /etc/profile' after making any change. I= =20 have also rebooted for good measure since this thread spanned more than a f= ew=20 days so far. I do not use the full KDE. Instead I use Enlightenment with some KDE=20 applications. I do use kdm to login. The consoles work as expected, but terminals in X do not. They seem to be= =20 stuck to (or overwritten by) a US profile for some reason. Running env-update works as far as updating the /etc/profile.env file goes: =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 # THIS FILE IS AUTOMATICALLY GENERATED BY env-update. # DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES # GO INTO /etc/profile NOT /etc/profile.env export CONFIG_PROTECT=3D'/usr/share/X11/xkb /usr/share/config' export CONFIG_PROTECT_MASK=3D'/etc/sandbox.d /etc/fonts/fonts.conf /etc/gco= nf=20 /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild' export CVS_RSH=3D'ssh' export GCC_SPECS=3D'' export GDK_USE_XFT=3D'1' export ICAROOT=3D'/opt/ICAClient' export INFOPATH=3D'/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux- gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/info' export LANG=3D'en_GB.UTF-8' export LC_ADDRESS=3D'en_GB.UTF-8' export LC_COLLATE=3D'C' export LC_CTYPE=3D'en_GB.UTF-8' export LC_IDENTIFICATION=3D'en_GB.UTF-8' export LC_MEASUREMENT=3D'en_GB.UTF-8' export LC_MESSAGES=3D'en_GB.UTF-8' export LC_MONETARY=3D'en_GB.UTF-8' export LC_NAME=3D'en_GB.UTF-8' export LC_NUMERIC=3D'en_GB.UTF-8' export LC_PAPER=3D'en_GB.UTF-8' export LC_TELEPHONE=3D'en_GB.UTF-8' export LC_TIME=3D'en_GB.UTF-8' [snip ...] =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 Out of all the above only LANG takes and is shown as LANG=3Den_GB.UTF-8, al= l the=20 rest are shown as =3D"en_US.UTF-8" in xterm, aterm, urxvt, konsole. Launching xterm from an aterm with -ls or with -lc does not change the outp= ut=20 =2D i.e. xterm does not read .bashrc or /etc/env.d/02locale. So I conluded after Bill kindly hinted, that either kdm or E17 do something= =20 different than what I expect with locales, because terminals running in X d= o=20 not recognise my settings. Looking into KDE systemsettings I see this under Country Selector: "Not set= =20 (Generic English)". Also, language is blank - despite the fact that I have= =20 set up LINGUAS=3D"en_GB". Setting Country as UK and rebooting did not make= any=20 difference with regards to locales, or language (which is still shown blank= =20 with English US as the only drop down option). Then I looked into Enlightenment's 'Settings Panel'/Language and noticed th= at=20 although it had picked up language as English/UK it had not picked up the=20 UTF-8 character set. Selected that, logged out/in and now all my locale=20 settings in terminals show en_GB.UTF-8 (even for LC_COLLATE and LC_ALL). Therefore, it was the desktop manager after all! Thank you very much for your help. PS. Going back to the original thread and the link that Enrico gave, are w= e=20 meant to set up LANGUAGE separately to LANG? (I thought they were the same= ). =2D-=20 Regards, Mick --nextPart1306333.7h2bPXTJzY 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) iEYEABECAAYFAkwmNiMACgkQVTDTR3kpaLbq2ACbBGeVPDffc9oBm8NfjzvkZKdq iQ4AnRssiAu/I2Y3YkN2XeNVsHReo6sG =lXbo -----END PGP SIGNATURE----- --nextPart1306333.7h2bPXTJzY--