This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug localedata/14039] New: strcoll inverted(?) order of uppercase/lowercase characters
- 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:52:16 +0000
- Subject: [Bug localedata/14039] New: strcoll inverted(?) order of uppercase/lowercase characters
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14039
Bug #: 14039
Summary: strcoll inverted(?) order of uppercase/lowercase
characters
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
This is probably invalid, just wanted to raise a potential issue with strcoll.
When sorting ascii characters using their ascii codes 'A' < 'a'. Strcoll does
the opposite 'a' < 'A' and 'Ä' < 'Ä'. The problem with this approach is that,
for performance reasons, a lot of programs use ascii comparison and fall back
on strcoll when they encounter unicode characters. This results in inconsistent
sorting, for example 'A' < 'a' and 'Ä' < 'Ä'.
Should this particular sorting rule be arbitrary, would it be possible to
change it (to match ascii order)?
--
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.