This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Should glibc provide a builtin C.UTF-8 locale?


On 02/12/2015 07:12 AM, Joseph Myers wrote:
> On Wed, 11 Feb 2015, Carlos O'Donell wrote:
> 
>> When I say "like C" I mean that setting "C.UTF8" in LC_ALL would
>> ignore LANGUAGE, as is required when setting LC_ALL to "C".
> 
> "Like C" could also mean that ASCII characters (and probably all 
> characters) are collated in code-point order (so, for example, all 
> uppercase ASCII letters come before all lowercase).  Or do you think the 
> right way to achieve that minimal extension of the C locale to UTF-8 is to 
> set only LC_CTYPE and not LC_COLLATE or LC_ALL?

That's an open question. I expect that your instinct is correct and that
we should collate in code-point order. There should be some deterministic
ordering such that low-level sorting utilities work reliably.

Cheers,
Carlos.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]