public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/14038] New: strcoll sorting order
@ 2012-05-01  3:43 ndrwrdck at gmail dot com
  2012-05-01  3:58 ` [Bug localedata/14038] " ndrwrdck at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ndrwrdck at gmail dot com @ 2012-05-01  3:43 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-25 11:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-01  3:43 [Bug localedata/14038] New: strcoll sorting order ndrwrdck at gmail dot com
2012-05-01  3:58 ` [Bug localedata/14038] " ndrwrdck at gmail dot com
2012-05-01  6:49 ` schwab@linux-m68k.org
2012-05-01  6:55 ` schwab@linux-m68k.org
2012-05-01  8:59 ` pasky at ucw dot cz
2012-05-01 10:45 ` ndrwrdck at gmail dot com
2014-06-25 11:10 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).