Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: /etc/locale vs /etc/env.d/02locale?
Date: Thu, 16 Jun 2011 17:04:33
Message-Id: itdaij$sm6$1@dough.gmane.org
In Reply to: [gentoo-user] /etc/locale vs /etc/env.d/02locale? by Mark Knecht
1 On 06/16/2011 06:45 PM, Mark Knecht wrote:
2 > Is there a simple explanation concerning the difference between the
3 > two locales I have seen on Gentoo machines?
4 >
5 > 1) /etc/locale, as specified in the installation documents
6 >
7 > 2) /etc/env.d/02locale as has been discussed on the list recently
8
9 There is no /etc/locale. I assume you mean /etc/locale.gen. That one
10 only contains the locales for glibc. You should not specify env vars
11 there. You only list raw locales. Mine for example has these contents:
12
13 en_US ISO-8859-1
14 en_US.UTF-8 UTF-8
15
16 /etc/env.d/02locale is of a different format. It's executed as a
17 script, so you set your locale-specific env vars there. You only need
18 LANG actually, and possibly LC_COLLATE. The whole contents of mine:
19
20 LANG="en_US.UTF-8"
21 LC_COLLATE="C"

Replies

Subject Author
Re: [gentoo-user] Re: /etc/locale vs /etc/env.d/02locale? Mark Knecht <markknecht@×××××.com>