Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] /etc/locale vs /etc/env.d/02locale?
Date: Thu, 16 Jun 2011 16:04:52
Message-Id: BANLkTi=UrsXbzQ_B3RgP6xu4F+7-8Gmr-w@mail.gmail.com
1 Is there a simple explanation concerning the difference between the
2 two locales I have seen on Gentoo machines?
3
4 1) /etc/locale, as specified in the installation documents
5
6 2) /etc/env.d/02locale as has been discussed on the list recently
7
8 I'm helping a Windows friend bring up his first Gentoo box. With the
9 locale set in /etc/locale as per the install docs the locale command
10 returns: (from the chroot)
11
12 (chroot) livecd linux # cat /etc/locale.gen
13 <SNIP>
14 en_US ISO-8859-1
15 en_US.UTF-8 UTF-8
16 (chroot) livecd linux # locale
17 LANG=
18 LC_CTYPE="POSIX"
19 LC_NUMERIC="POSIX"
20 LC_TIME="POSIX"
21 LC_COLLATE="POSIX"
22 LC_MONETARY="POSIX"
23 LC_MESSAGES="POSIX"
24 LC_PAPER="POSIX"
25 LC_NAME="POSIX"
26 LC_ADDRESS="POSIX"
27 LC_TELEPHONE="POSIX"
28 LC_MEASUREMENT="POSIX"
29 LC_IDENTIFICATION="POSIX"
30 LC_ALL=
31 (chroot) livecd linux #
32
33
34 However on my machines it did the same thing until I set 02locale and
35 now it returns:
36
37 mark@c2stable ~ $ locale
38 LANG=en_US.UTF8
39 LC_CTYPE="en_US.UTF8"
40 LC_NUMERIC="en_US.UTF8"
41 LC_TIME="en_US.UTF8"
42 LC_COLLATE="en_US.UTF8"
43 LC_MONETARY="en_US.UTF8"
44 LC_MESSAGES="en_US.UTF8"
45 LC_PAPER="en_US.UTF8"
46 LC_NAME="en_US.UTF8"
47 LC_ADDRESS="en_US.UTF8"
48 LC_TELEPHONE="en_US.UTF8"
49 LC_MEASUREMENT="en_US.UTF8"
50 LC_IDENTIFICATION="en_US.UTF8"
51 LC_ALL=
52 mark@c2stable ~ $
53
54 It seems to me the latter is preferable but the install docs don't
55 talk about it at all.
56
57 Thanks,
58 Mark

Replies

Subject Author
[gentoo-user] Re: /etc/locale vs /etc/env.d/02locale? Nikos Chantziaras <realnc@×××××.de>