Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] More locale oddness
Date: Fri, 07 Jan 2011 03:20:11
Message-Id: 4D267AA4.4050507@gmail.com
In Reply to: [gentoo-user] More locale oddness by Stroller
1 Stroller wrote:
2 > Hi there,
3 >
4 > Can anyone else reproduce this, please, or tell me what behaviour is expected?
5 >
6 > $ locale
7 > LANG=en_GB.UTF-8
8 > LC_CTYPE="en_GB.UTF-8"
9 > LC_NUMERIC="en_GB.UTF-8"
10 > LC_TIME=en_GB.UTF-8
11 > LC_COLLATE="en_GB.UTF-8"
12 > LC_MONETARY="en_GB.UTF-8"
13 > LC_MESSAGES="en_GB.UTF-8"
14 > LC_PAPER="en_GB.UTF-8"
15 > LC_NAME="en_GB.UTF-8"
16 > LC_ADDRESS="en_GB.UTF-8"
17 > LC_TELEPHONE="en_GB.UTF-8"
18 > LC_MEASUREMENT="en_GB.UTF-8"
19 > LC_IDENTIFICATION="en_GB.UTF-8"
20 > LC_ALL=
21 > $ date +"%l:%M%P"
22 > 1:39
23 > $ LC_TIME="POSIX"
24 > $ date +"%l:%M%P"
25 > 1:39am
26 > $
27 >
28 > I had a single line of only LANG="en_GB.UTF-8" in /etc/env.d/02locale; adding LC_TIME="POSIX" allows various scripts and stuff (I've written) to show the date properly, but I think I read somewhere that this is bad.
29 >
30 > Thanks for any advice,
31 >
32 > Stroller.
33 >
34 >
35
36 This is mine:
37
38 root@fireball / # locale
39 LANG=
40 LC_CTYPE="POSIX"
41 LC_NUMERIC="POSIX"
42 LC_TIME="POSIX"
43 LC_COLLATE="POSIX"
44 LC_MONETARY="POSIX"
45 LC_MESSAGES="POSIX"
46 LC_PAPER="POSIX"
47 LC_NAME="POSIX"
48 LC_ADDRESS="POSIX"
49 LC_TELEPHONE="POSIX"
50 LC_MEASUREMENT="POSIX"
51 LC_IDENTIFICATION="POSIX"
52 LC_ALL=
53 root@fireball / #
54
55 No idea about anything bad tho. Just for comparison.
56
57 Dale
58
59 :-) :-)