]> git.ipfire.org Git - thirdparty/glibc.git/commit
Add 'strcmp_collation' support for LC_COLLATE.
authorCarlos O'Donell <carlos@redhat.com>
Thu, 29 Jul 2021 05:22:55 +0000 (01:22 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Thu, 29 Jul 2021 05:22:55 +0000 (01:22 -0400)
commit7de41f96a172e5f15bc449ec3c09dbd0ae4cf2c6
tree0bf2539189fd8defc8b81362d30f96e441b431c7
parent52d5eb7e0678914f848cc3d7ac99f63d9d8359ef
Add 'strcmp_collation' support for LC_COLLATE.

Support a new directive 'strcmp_collation' in the LC_COLLATE
section of a locale source file. This new directive causes all
collation rules to be dropped and instead 'strcmp' is used for
collation of the input character set. This is required to allow
for a C.UTF-8 that contains zero collation rules (minimal size)
and sorts using code point sorting.

Tested on x86_64 and i686 without regression.
locale/programs/ld-collate.c
locale/programs/locfile-kw.gperf
locale/programs/locfile-kw.h
locale/programs/locfile-token.h