From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L9WWG-00018j-6u for garchives@archives.gentoo.org; Mon, 08 Dec 2008 03:10:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C075DE06BC; Mon, 8 Dec 2008 03:10:46 +0000 (UTC) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by pigeon.gentoo.org (Postfix) with ESMTP id 625B5E06BC for ; Mon, 8 Dec 2008 03:10:46 +0000 (UTC) Received: by wf-out-1314.google.com with SMTP id 29so990855wff.10 for ; Sun, 07 Dec 2008 19:10:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=SnGblWF3FIPHQ8gOm+ma84Pzpy/44BK+WVWGWhn+Fig=; b=fxF7Bw+WGE+nBKtJtUwKC7IBcnTM1oCDrZHKhIVzoxwWfXMjiGfVrajEAsoFn97O11 UPpWVFwIZk53Zt20hk6PvEH9fne+Kz9PS7F5l044vEhGpgjmAu4U8TF4rUDuvukKP9/p klWliy9Xpz8dUkqdFiv3a2iUWGIjKP/4AVZmA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=i03gjURohTwaqbbEXPKdyxIL6A+LoeNy7/aLOMjC8PuYI0lNYUFcAVYGbZsui/PpqH oM/V3AUtx4NmUXSu3Sp5tz+mlBciJBuUIFowVp58AgKTwXpqJAywXoMPHGdTR0uyWyEV x5JfXPm109idJXDb1Ssso8xDR2CJRSc1nRalQ= Received: by 10.142.139.14 with SMTP id m14mr1259367wfd.100.1228705845997; Sun, 07 Dec 2008 19:10:45 -0800 (PST) Received: by 10.142.217.2 with HTTP; Sun, 7 Dec 2008 19:10:45 -0800 (PST) Message-ID: <5bdc1c8b0812071910l1beab0e8s6d6124954689a677@mail.gmail.com> Date: Sun, 7 Dec 2008 19:10:45 -0800 From: "Mark Knecht" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] locale issue to clean up In-Reply-To: <493C74EE.7050109@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: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5bdc1c8b0812071335x51af155cn6a497a0d2449d266@mail.gmail.com> <493C464B.1010205@gmail.com> <5bdc1c8b0812071517i6ef5804dr2c3f6a5a4c94@mail.gmail.com> <493C65E7.1090607@kutulu.org> <5bdc1c8b0812071642x1776c539j320fa179707f5e67@mail.gmail.com> <493C74EE.7050109@gmail.com> X-Archives-Salt: 00bbcc81-a744-4d08-9d8a-3dfa9f6cecee X-Archives-Hash: 6d423c95297d96c3c28f43e034acb383 On Sun, Dec 7, 2008 at 5:14 PM, smallnow wrote: > Mike Edenfield wrote: >> You should have a directory in /usr/share/locale for every locale you >> want available on your system. The source files for the locales should >> be in /usr/share/i18n/locales and /usr/share/i18n/charsets. That is, >> you should have all of the following: >> >> /usr/share/i18n/locales/en_US >> /usr/share/i18n/charsets/ISO8859-1 >> /usr/share/i18n/charsets/UTF-8 >> /usr/share/locale/en_US.ISO8859-1 >> /usr/share/locale/en_US.UTF-8 > > Um, on my system, i have > /usr/share/i18n/charmaps/UTF-8.gz > /usr/share/i18n/charmaps/IS8859-1.gz > notice charmaps vs charsets > the other folders all have en_US files and folders, no utf8 extensions. And my > locale stuff seems to work fine. Do you actually have those files on your > computer or did you just type them from memory and get them wrong? > I do locale -a and get: > C > POSIX > en_US > en_US.iso88591 > en_US.utf8 > also, I do locale-gen and it succeeds and I don't get any of the files you > mentioned. > > Heres my suggestion to the original poster. I would heed the warning in the > gentoo guide not to set LC_ALL. I also have a lot of other files under those > directories and I would just leave them alone, but if you want to delete them, > just move them so you can move them back later if it doesn't help. I think one > of your problems might be that you need to set all your locale variables in > 02locale. Then do "eselect env update" and relogin. Also you should have 644 > permissions on these files. > > cat /etc/env.d/02locale > 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="POSIX" > 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" > > > cat /etc/locale.gen > > en_US ISO-8859-1 > en_US.utf8 UTF-8 > You may be correct about setting all of this in 02locale. I noticed that the Gentoo formatting stuff for vi is treating LC_ALL and LC_COLLATE differently than LINGUAS. The manual seems to say set system wide stuff in 02locale and user stuff in your own account. [[ Two minutes later... ]] OK, I changed 02locale and just put your values in. I rane eselect env update, logged out and back in. For the first time locale -a looks good: lightning ~ # 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=POSIX 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= lightning ~ # locale -a C POSIX en_US en_US.iso88591 en_US.utf8 lightning ~ # At this point I may be clean but I'm going to emerge glibc just to be sure. Back later... Cheers, Mark