This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug locale/18927] New: Different strings should never collate as equal
- From: "egmont at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 06 Sep 2015 22:21:31 +0000
- Subject: [Bug locale/18927] New: Different strings should never collate as equal
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18927
Bug ID: 18927
Summary: Different strings should never collate as equal
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: locale
Assignee: unassigned at sourceware dot org
Reporter: egmont at gmail dot com
Target Milestone: ---
Bug 13547 manually fixed a case where two distinct strings collated as equal.
Bug 16527 is another, currently unresolved case. Probably there are other, yet
undiscovered cases as well, and new ones might appear in the future.
This causes confusion with programs such as sort (the order is undefined, might
vary from run to run), or uniq (different lines being reported as equal).
I think there should be a safeguard code so that no locale definition can
result in this ever happening.
One possible approach I can imagine: Change the current strxfrm() magic to
produce an output that's restricted to bytes in the 2-255 range. Then append a
0x01 byte followed by the original string's literal copy.
--
You are receiving this mail because:
You are on the CC list for the bug.