[PATCH v6 1/2] Add 'strcmp_collation' support for LC_COLLATE.

Carlos O'Donell carlos@redhat.com
Sat Jul 31 18:41:36 GMT 2021


On 7/30/21 4:25 PM, Florian Weimer via Libc-alpha wrote:
> * Andreas Schwab:
> 
>> On Jul 30 2021, Carlos O'Donell via Libc-alpha wrote:
>>
>>> Support a new directive 'strcmp_collation' in the LC_COLLATE
>>
>> strcmp is wrong for wide strings.  How about codepoint_collation?
> 
> Very good point.  I like codepoint_collation.

Agreed. Under the hood we are using either strcmp or wcscmp in
strcoll and wcscoll respectively for nrules == 0 and that is
correct.

Fixing this for v7.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list