From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1GrgeC-0006GI-MA for garchives@archives.gentoo.org; Tue, 05 Dec 2006 20:12:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kB5K8qxT026547; Tue, 5 Dec 2006 20:08:52 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kB5K8peo030007 for ; Tue, 5 Dec 2006 20:08:52 GMT Received: by ug-out-1314.google.com with SMTP id z38so3501949ugc for ; Tue, 05 Dec 2006 12:08:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pPdzCkXgqWITzuxw2Gtxnx+OCWMFAzBnFzMQtLleoaHbjNJNf/Yixe7wpqRwF85z10Pv8GK5RwNFy0O2gwfB/RNAt/KRXCENhlHEyuwRlpEkfGL2nFM0f2Hq3xX0WkjFszthcKLHiL202dS4hlBaoO42df6TZxXPI3wpmfzeouk= Received: by 10.82.139.17 with SMTP id m17mr1799692bud.1165349331196; Tue, 05 Dec 2006 12:08:51 -0800 (PST) Received: by 10.82.125.9 with HTTP; Tue, 5 Dec 2006 12:08:50 -0800 (PST) Message-ID: <5bdc1c8b0612051208s14c6d247r66afb928b8bd3be5@mail.gmail.com> Date: Tue, 5 Dec 2006 12:08:50 -0800 From: "Mark Knecht" To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] locales questions In-Reply-To: <200612042112.32836.bo.andresen@zlin.dk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Disposition: inline References: <5bdc1c8b0612041030v2b6e0c5dr23c99a80f432c678@mail.gmail.com> <200612041944.11065.bo.andresen@zlin.dk> <5bdc1c8b0612041133w192397cega270af3bcc74afe4@mail.gmail.com> <200612042112.32836.bo.andresen@zlin.dk> X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id kB5K8peo030007 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id kB5K8q0P026547 X-Archives-Salt: fa896aa6-3b79-4e54-9e7b-427d0d07d2a4 X-Archives-Hash: 22b2ddfd15ee894627f6b08baf1a1479 Bo, Hi. I'm sure you're frustrated with me. Sorry. I really am reading these docs but there seem to be things I'm not quite understanding or things missing from the docs. Probably it's just me. Sorry. On 12/4/06, Bo =D8rsted Andresen wrote: > On Monday 04 December 2006 20:33, Mark Knecht wrote: > [SNIP] > > Reading the localization and quick install guides I've become a bi= t > > more confused. The localization guide says the LC_* settings are done > > in /etc/env.d/02locale but this doesn't exist here, not even after > > running locale-gen: > [SNIP] > > Setting LANG in 02locale is preferred over setting LC_ALL since that al= lows > you to override it with LC_ALL on the command line. And no, it isn't > generated automatically. You must create this file by yourself. After t= hat > you need to run `env-update && source /etc/profile`. OK, so I've now created 02locale by hand. However I cannot find a document that clearly states what an English only speaker/reader who lives in the U.S. would prefer here. Trying to follow the Eupean centric example on the web page I now have: lightning ~ # cat /etc/env.d/02locale LC_ALL=3D"en" LANG=3D"en" lightning ~ # I hope that's OK. I think the changes took hold: lightning ~ # env-update && source /etc/profile >>> Regenerating /etc/ld.so.cache... lightning ~ # env | grep -i LC_ LC_ALL=3Den lightning ~ # I've added LINGUAS=3D"en" to my make.conf file as required. > > > The current contents of locales.build are shown here. Seems fairly > > generic but what do I know? ;-) > > > > lightning ~ # cat /etc/locales.build > [SNIP] > > en_US/ISO-8859-1 > > en_US.UTF-8/UTF-8 > > lightning ~ # > > The syntax of locale.gen is more strict than the syntax of locales.buil= d. The > above is valid for locales.build. In locale.gen it must be: > > # cat /etc/locale.gen > en_US ISO-8859-1 > en_US.UTF-8 UTF-8 > > You must create that file and remove locales.build manually before runn= ing > locale-gen. locale-gen told you that if you bothered to read it...: I promise - I read that 10 times. It just doesn't read to me that I need to do it by hand even though it seems to say so. Sorry! > > [SNIP] > > * You should upgrade your /etc/locales.build to /etc/locale.gen > > * and then remove /etc/locales.build when you're done. > > > > * Automatically importing locales from /etc/locales.build ... > > * You really should do this yourself ... > [SNIP] > > Finally `locale -a` will show you valid values for LANG and LC_*. > > # locale -a > en_US > en_US.utf8 OK, but in my case it's still not working quite right: lightning etc # cat /etc/locale.gen en_US ISO-8859-1 en_US.UTF-8 UTF-8 lightning etc # cat /etc/env.d/02locale LC_ALL=3D"en" LANG=3D"en" lightning etc # env-update && source /etc/profile >>> Regenerating /etc/ld.so.cache... lightning etc # locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directo= ry locale: Cannot set LC_COLLATE to default locale: No such file or director= y C POSIX en_US en_US.utf8 lightning etc # So, I think I still have work to do here. Again, thanks very much for the help and sorry for being so dense about t= his. Cheers, Mark --=20 gentoo-amd64@gentoo.org mailing list