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/14038] New: strcoll sorting order


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.


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