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 1QXG6G-00071n-2p for garchives@archives.gentoo.org; Thu, 16 Jun 2011 17:11:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A89F21C139 for ; Thu, 16 Jun 2011 17:11:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A861F1C083 for ; Thu, 16 Jun 2011 16:47:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 484931B402B for ; Thu, 16 Jun 2011 16:47:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -4.883 X-Spam-Level: X-Spam-Status: No, score=-4.883 required=5.5 tests=[AWL=1.716, 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 4QtXV-osLwOr for ; Thu, 16 Jun 2011 16:47:48 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id B1F2B1B4035 for ; Thu, 16 Jun 2011 16:47:46 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXFjJ-0002LQ-Ec for gentoo-user@gentoo.org; Thu, 16 Jun 2011 18:47:41 +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:47:41 +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:47:41 +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:47:52 +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: 9fe67492128ffd964a220d76b9b3305d On 06/16/2011 07:23 PM, Mark Knecht wrote: > On Thu, Jun 16, 2011 at 9:00 AM, Paul Hartman > wrote: >> On Thu, Jun 16, 2011 at 10:45 AM, 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 >> >> I'm not near a Gentoo machine right now, but off the top of my head IIRC: >> >> /etc/locale.gen contains a list of locales to be compiled when glibc >> is emerged. These will be available to be used. >> >> /etc/env.d/02locale specifies which of those locales you actually want >> to use for the system-wide default (the LC variables) > > Thanks for the response Paul. > > Does that mean that the /etc/locale.gen is used only by glibc and not > really by the system? If so, what is glibc doing with these beyond > letting me system run programs? It allows you to have locales to use in /etc/env.d/02locale ;-) If you want to set LANG=en_US.UTF-8 in 02locale, you of course need the files for that specific locale/encoding. To get them, you need to write "en_US.UTF-8 UTF-8" in locale.gen. Not sure why you're not getting the comments in your locale.gen, but here there are, at the top of the file: # /etc/locale.gen: list all of the locales you want to have on your system # # The format of each line: # # # Where is a locale located in /usr/share/i18n/locales/ and # where is a charmap located in /usr/share/i18n/charmaps/. # # All blank lines and lines starting with # are ignored. # # For the default list of supported combinations, see the file: # /usr/share/i18n/SUPPORTED # # Whenever glibc is emerged, the locales listed here will be automatically # rebuilt for you. After updating this file, you can simply run `locale-gen` # yourself instead of re-emerging glibc.