Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] More locale oddness
Date: Sat, 08 Jan 2011 14:24:50
Message-Id: E81B37A9-7F8B-408F-8BA8-AFE02916B356@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] More locale oddness by Alan McKinnon
1 On 8/1/2011, at 1:24pm, Alan McKinnon wrote:
2 >> ...
3 >> I've just tested on another machine. It seems like if I set it to match the
4 >> first machine with both environments in the /etc/env.d/02locale:
5 >>
6 >> $ cat /etc/env.d/02locale
7 >> LANG="en_GB.UTF-8"
8 >> LC_TIME="POSIX"
9 >> $ sudo env-update && source /etc/profile
10 >> $ source ~/.bashrc
11 >>
12 >> Then I can reproduce switching LC_TIME without exporting or anything else:
13 >>
14 >> $ date +"%l:%M%P"
15 >> 4:01pm
16 >> $ LC_TIME="en_GB.utf8"
17 >> $ date +"%l:%M%P"
18 >> 4:02
19 >> $ LC_TIME="POSIX"
20 >> $ date +"%l:%M%P"
21 >> 4:02pm
22 >> $
23 >>
24 >> Removing either (& rebooting, because I don't really understand this stuff)
25 >> removes the ability.
26 >>
27 >> I don't know whether this is supposed to be correct or not; with both
28 >> environments in /etc/env.d/02locale:
29 >> ...
30 >
31 > The effect of LC_TIME= on your machines doesn't make sense to me.
32 >
33 > What shell are you running?
34
35 Bash.
36
37 Stroller.