Gentoo Archives: gentoo-user

From: Kerin Millar <kerframil@×××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] export LC_CTYPE=en_US.UTF-8
Date: Wed, 07 Aug 2013 22:27:59
Message-Id: 5202C9D2.2050202@fastmail.co.uk
In Reply to: Re: [gentoo-user] export LC_CTYPE=en_US.UTF-8 by Stroller
1 On 07/08/2013 17:40, Stroller wrote:
2 >
3 > On 7 August 2013, at 13:41, Kerin Millar wrote:
4 >
5 >> On 06/08/2013 23:42, Stroller wrote:
6 >>>
7 >>> On 6 August 2013, at 14:04, Kerin Millar wrote:
8 >>>> ...
9 >>>> If undefined, the value of LC_COLLATE is inherited from LANG. I'm not sure that overriding it is particularly useful nowadays but it doesn't hurt.
10 >>>
11 >>> It's been a couple of years since I looked into this, but I'm given to believe that LANG should set all LC_ variables correctly, and that overriding them is frowned upon.
12 >>
13 >> As has been mentioned, there are valid reasons to want to override the collation. Here is a concrete example:
14 >>
15 >> https://lists.gnu.org/archive/html/bug-gnu-utils/2003-08/msg00537.html
16 >>
17 >> Strictly speaking, grep is correct to behave that way but it can be confounding.
18 >
19 > Linking also this answer, which you're aware of:
20 > https://lists.gnu.org/archive/html/bug-gnu-utils/2003-08/msg00600.html
21
22 Best practice will never be universally observed.
23
24 >
25 > This only goes to illustrate that you shouldn't be going overriding these willy-nilly without full awareness of why you're doing so and what you're doing.
26
27 It also served to illustrate the overall point I was making - that
28 sticking to the C/POSIX collation is not without value as a safety
29 measure. Naturally, I would expect anyone else to exercise their own
30 judgement.
31
32 >
33 >
34 >>> I had to do this myself because, due to a bug, the en_GB time formatting failed to display am or pm. I believe this should be fixed now.
35 >>
36 >> Presumably:
37 >>
38 >> a) LANG was defined inappropriately
39 >> b) LANG was defined appropriately but LC_TIME was defined otherwise
40 >> c) LC_ALL was defined, trumping all
41 >
42 >
43 > I'm having trouble parsing this reply, but perhaps you might find the full bug description helpful. I wrote about 1000 words on the subject there last year.
44 >
45 > It is the top Google hit for "en_gb am pm bug": http://sourceware.org/bugzilla/show_bug.cgi?id=3768
46
47 OK.
48
49 --Kerin