Should glibc provide a builtin C.UTF-8 locale?
Carlos O'Donell
carlos@redhat.com
Thu Feb 12 15:16:00 GMT 2015
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.
More information about the Libc-alpha
mailing list