This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/5521] Collation: "#" < "a" < "#a"; special characters and wrong sorting


------- Additional Comments From maciej dot blizinski+sources-bugzilla at gmail dot com  2007-12-24 16:51 -------
I've found a relevant page here:
http://www.unicode.org/unicode/reports/tr10/#Common_Misperceptions

Collation order is not preserved under concatenation or substring operations, in
general. For example, the fact that x is less than y does not mean that x + z is
less than y + z. This is because characters may form contractions across the
substring or concatenation boundaries. In summary, the following shows which
implications not to expect.

x < y â?? xz < yz
x < y â?? zx < zy
xz < yz â?? x < y
zx < zy â?? x < y

* * *

Perhaps I've fallen into the misperception number one: x < y ? xz < yz. I'll
need to read this document carefully and understand why doesn't x < y imply xz < yz.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5521

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]