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 1QXFzd-0006Ns-Om for garchives@archives.gentoo.org; Thu, 16 Jun 2011 17:04:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 616B31C104 for ; Thu, 16 Jun 2011 17:04:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E568D1C075 for ; Thu, 16 Jun 2011 16:22:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 53D3C1B402B for ; Thu, 16 Jun 2011 16:22:10 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -4.881 X-Spam-Level: X-Spam-Status: No, score=-4.881 required=5.5 tests=[AWL=1.718, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RfJBl45fYOmU for ; Thu, 16 Jun 2011 16:22:02 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 9AC241B401A for ; Thu, 16 Jun 2011 16:22:02 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXFKO-00044c-9h for gentoo-user@gentoo.org; Thu, 16 Jun 2011 18:21:56 +0200 Received: from athedsl-389984.home.otenet.gr ([79.131.75.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jun 2011 18:21:54 +0200 Received: from realnc by athedsl-389984.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jun 2011 18:21:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: /etc/locale vs /etc/env.d/02locale? Date: Thu, 16 Jun 2011 19:22:01 +0300 Organization: Lucas Barks Message-ID: References: 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; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-389984.home.otenet.gr User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110524 Thunderbird/3.1.10 In-Reply-To: X-Archives-Salt: X-Archives-Hash: 88939c36b97a37f8355038a8db4ec044 On 06/16/2011 06:45 PM, Mark Knecht wrote: > Is there a simple explanation concerning the difference between the > two locales I have seen on Gentoo machines? > > 1) /etc/locale, as specified in the installation documents > > 2) /etc/env.d/02locale as has been discussed on the list recently There is no /etc/locale. I assume you mean /etc/locale.gen. That one only contains the locales for glibc. You should not specify env vars there. You only list raw locales. Mine for example has these contents: en_US ISO-8859-1 en_US.UTF-8 UTF-8 /etc/env.d/02locale is of a different format. It's executed as a script, so you set your locale-specific env vars there. You only need LANG actually, and possibly LC_COLLATE. The whole contents of mine: LANG="en_US.UTF-8" LC_COLLATE="C"