Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] SNIP warning: setlocale: LC_ALL error
Date: Thu, 17 Jul 2014 22:48:59
Message-Id: 3256658.0gL6GGCI37@wstn
In Reply to: Re: [gentoo-user] SNIP warning: setlocale: LC_ALL error by Dale
1 On Thursday 17 July 2014 16:41:45 Dale wrote:
2
3 > This is my locale.gen file:
4 >
5 > LANG="en_US.UTF8"
6 > LC_CTYPE="en_US.UTF8"
7 > LC_NUMERIC="en_US.UTF8"
8 > LC_TIME="en_US.UTF8"
9 > LC_COLLATE="en_US.UTF8"
10 > LC_MONETARY="en_US.UTF8"
11 > LC_MESSAGES="en_US.UTF8"
12 > LC_PAPER="en_US.UTF8"
13 > LC_NAME="en_US.UTF8"
14 > LC_ADDRESS="en_US.UTF8"
15 > LC_TELEPHONE="en_US.UTF8"
16 > LC_MEASUREMENT="en_US.UTF8"
17
18 Dale, why are you setting all those values yourself? As far as I know, the
19 only one you need to set is the first one: LANG. The rest of them should all
20 be taken care of by portage - unless you have very particular (i.e. special)
21 requirements. I don't have any of those values set anywhere; look:
22
23 $ grep -r LC_ /etc
24 /etc/init.d/hwclock: if LC_ALL=C hwclock --help 2>&1 | grep -q
25 "\-\-noadjfile"; then
26 /etc/portage/savedconfig/sys-apps/busybox-1.21.0:# CONFIG_FEATURE_IPCALC_FANCY
27 is not set
28 /etc/portage/savedconfig/sys-apps/busybox-1.21.0:#
29 CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set
30 /etc/ssh/ssh_config:SendEnv LANG LC_*
31
32 This is my /etc/locale.gen:
33
34 en_GB.UTF-8 UTF-8
35 en_GB ISO-8859-1
36 en_GB.ISO-8859-15 ISO-8859-15
37
38 I don't remember why I still have those last two entries; I expect they date
39 from before Gentoo adopted UTF-8. Maybe I'll remove them and see what happens.
40
41 It's an easy trap to fall into: over-specifying details just because Gentoo
42 lets you do so, in contrast to other distros.
43
44 KISS :)
45
46 --
47 Regards
48 Peter

Replies

Subject Author
Re: [gentoo-user] SNIP warning: setlocale: LC_ALL error Mick <michaelkintzios@×××××.com>