[Bug localedata/14038] New: strcoll sorting order
ndrwrdck at gmail dot com
sourceware-bugzilla@sourceware.org
Tue May 1 04:39:00 GMT 2012
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.
More information about the Libc-locales
mailing list