Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] export LC_CTYPE=en_US.UTF-8
Date: Wed, 07 Aug 2013 00:58:20
Message-Id: CAJ0EP40mpkcsUvtzVyxRDBWB=Ga8t8TCBzduM_ZBawr2dvc=Zw@mail.gmail.com
In Reply to: Re: [gentoo-user] export LC_CTYPE=en_US.UTF-8 by Chris Stankevitz
1 On Tue, Aug 6, 2013 at 2:23 PM, Chris Stankevitz
2 <chrisstankevitz@×××××.com> wrote:
3 > On Tue, Aug 6, 2013 at 8:13 AM, Mike Gilbert <floppym@g.o> wrote:
4 >> Leaving LC_COLLATE unset will cause strings to be sorted according to
5 >> the normal rules associated with your locale.
6 >
7 > Mike (or anyone else),
8 >
9 > For which applications does setting LC_COLLATE affect sorting:
10 >
11 > a) Any C++ application that uses bool std::string::operator<(const std::string&)
12 >
13 > b) Any C or C++ application that compares char values using the '<' operator
14 >
15 > c) Any application that uses the system call "CompareStrings(const
16 > char*, const char*)"
17 >
18 > d) [your answer here]
19 >
20 > I'm sure the answer is not a or b. I'm sure it's not c either since I
21 > just made it up.
22 >
23
24 From locale(7):
25
26 LC_COLLATE
27 This is used to change the behavior of the functions
28 strcoll(3) and strxfrm(3),
29 which are used to compare strings in the local
30 alphabet. For example, the German
31 sharp s is sorted as "ss".