On Tue, Aug 6, 2013 at 2:23 PM, Chris Stankevitz
<[email protected]> wrote:
> On Tue, Aug 6, 2013 at 8:13 AM, Mike Gilbert <[email protected]> wrote:
>> Leaving LC_COLLATE unset will cause strings to be sorted according to
>> the normal rules associated with your locale.
>
> Mike (or anyone else),
>
> For which applications does setting LC_COLLATE affect sorting:
>
> a) Any C++ application that uses bool std::string::operator<(const
> std::string&)
>
> b) Any C or C++ application that compares char values using the '<' operator
>
> c) Any application that uses the system call "CompareStrings(const
> char*, const char*)"
>
> d) [your answer here]
>
> I'm sure the answer is not a or b. I'm sure it's not c either since I
> just made it up.
>
>From locale(7):
LC_COLLATE
This is used to change the behavior of the functions
strcoll(3) and strxfrm(3),
which are used to compare strings in the local
alphabet. For example, the German
sharp s is sorted as "ss".