]> git.ipfire.org Git - thirdparty/glibc.git/commit
iso14651_t1_common: make the fourth level the codepoint for characters which are...
authorMike FABIAN <mfabian@redhat.com>
Wed, 31 Jan 2018 05:18:47 +0000 (06:18 +0100)
committerMike FABIAN <mfabian@redhat.com>
Fri, 2 Mar 2018 10:31:15 +0000 (11:31 +0100)
commita93fecdcece3e2178834f4b4868b2309b0158753
tree6e5cd221df5b8f9b5a277b36906420c3ebaaf7de
parent3e7089bf28ed1fd77e644bb3ce7405aff7847e61
iso14651_t1_common: make the fourth level the codepoint for characters which are ignorable on all 4 levels

Entries for characters which have “IGNORE” on all 4 levels like:

 <U0001> IGNORE;IGNORE;IGNORE;IGNORE % START OF HEADING (in ISO 6429)

are changed into:

 <U0001> IGNORE;IGNORE;IGNORE;<U0001> % START OF HEADING (in ISO 6429)

i.e. putting the code point of the character into the fourth level
instead of “IGNORE”. Without that change, all such characters
would compare equal which would make a wcscoll test case fail.
It is better to have a clearly defined sort order even for characters
like this so it is good to use the code point as a tie-break.

* localedata/locales/iso14651_t1_common: Use the code point of a
        character in the fourth collation level instead of IGNORE for all
        entries which have IGNORE on all 4 levels.
localedata/locales/iso14651_t1_common