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". |