This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug localedata/14038] New: strcoll sorting order
- From: "ndrwrdck at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 01 May 2012 03:42:22 +0000
- Subject: [Bug localedata/14038] New: strcoll sorting order
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14038
Bug #: 14038
Summary: strcoll sorting order
Product: glibc
Version: 2.13
Status: NEW
Severity: normal
Priority: P2
Component: localedata
AssignedTo: unassigned@sourceware.org
ReportedBy: ndrwrdck@gmail.com
CC: libc-locales@sources.redhat.com
Classification: Unclassified
(not sure if that's an implementation or documentation issue)
In utf8 locales, some string comparisons depend on the length of the strings,
not sure if that's supposed to work that way (if so, it would be good to have a
reference to a standard defining these rules in the docs) or it is just a bug.
For example, if strcoll is used as a comparison function, these strings will be
sorted as follows:
ã
a
ãa
aa
ãaa
aaa
ãaaa
I'd expect the following order to be correct:
ã
ãa
ãaa
ãaaa
a
aa
aaa
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.