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" |