strcoll() and strxfrm() don't seem to agree
The code at this URL demonstrates the bug (note you need to change MAXXFRMLEN to * 10 though):
Basically, strxfrm() and strcoll() sort results are not matching. This seems to mainly impact strings that fall into the UNDEFINED part of the collation tables.
Updated by Yuri Pankov about 4 years ago
- File strcoll-strxfrm-6907.c added
- Subject changed from strxfrm() fails for certain characters to strcoll() and strxfrm() don't seem to agree
While the locale data problem is related, it's separate issue (now #7962).
I've simplified the linked test case for this one, to exclude the qsort "feature" of being uncertain of the sorting order of equal entries.
Updated by Electric Monk about 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 30 to 100
commit efcfb316ebac90ddc614edc285349bc5c55e52bd Author: Yuri Pankov <firstname.lastname@example.org> Date: 2017-03-28T04:13:01.000Z 6907 strcoll() and strxfrm() don't seem to agree Reviewed by: Robert Mustacchi <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>