This is the mail archive of the glibc-bugs@sources.redhat.com 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/498] New: Wrong sorting with the @euro modifier


Hi. 
 
Collation in some languages (at least spanish and catalan), is different with 
or without the @euro modifier. It seems that the dot is being ignored in 
es_ES@euro and ca_ES@euro, but not in es_ES or ca_ES, or other languages with 
and without the modifier. 
 
An example shows it clearer, so I've been doing some tests: 
 
$ cat sort.txt 
foo.cpp 
foo.desktop 
foodoc.cpp 
foodoc.h 
foo.h 
$ LANG=C sort sort.txt 
foo.cpp 
foo.desktop 
foo.h 
foodoc.cpp 
foodoc.h 
$ LANG=es_ES sort sort.txt # as expected 
foo.cpp 
foo.desktop 
foo.h 
foodoc.cpp 
foodoc.h 
$ LANG=ca_ES sort sort.txt # as expected 
foo.cpp 
foo.desktop 
foo.h 
foodoc.cpp 
foodoc.h 
$ LANG=es_ES@euro sort sort.txt # wrong! 
foo.cpp 
foo.desktop 
foodoc.cpp 
foodoc.h 
foo.h 
$ LANG=ca_ES@euro sort sort.txt # wrong! 
foo.cpp 
foo.desktop 
foodoc.cpp 
foodoc.h 
foo.h 
$ LANG=it_IT sort sort.txt 
foo.cpp 
foo.desktop 
foo.h 
foodoc.cpp 
foodoc.h 
$ LANG=it_IT@euro sort sort.txt 
foo.cpp 
foo.desktop 
foo.h 
foodoc.cpp 
foodoc.h 
$ LANG=gl_ES sort sort.txt 
foo.cpp 
foo.desktop 
foo.h 
foodoc.cpp 
foodoc.h 
$ LANG=gl_ES@euro sort sort.txt 
foo.cpp 
foo.desktop 
foo.h 
foodoc.cpp 
foodoc.h 
 
Since I see that both ca_ES@euro and es_ES@euro copy the LC_COLLATE information 
from ca_ES and es_ES respectively, and since dictionaries don't change the way 
they sort words because of a currency ;-), I think this is not a feature, but a 
bug. 
 
Greetings. 
 
PS: The test here is done with sort, but I noticed that using another software, 
and finally reached that, IMHO, was glibc's fault.

-- 
           Summary: Wrong sorting with the @euro modifier
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: pere at hungry dot com
        ReportedBy: suy at kurly dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=498

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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