Bug 214125 - strcoll fails to provide stable results for latin characters
Summary: strcoll fails to provide stable results for latin characters
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: glibc
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-05 22:24 UTC by Nikita Shulga
Modified: 2016-11-24 15:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-06 00:02:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Program that displays results of strcoll with different locales (407 bytes, text/plain)
2006-11-05 22:24 UTC, Nikita Shulga
no flags Details

Description Nikita Shulga 2006-11-05 22:24:19 UTC
Description of problem:
strcoll("D","d") returns positive value for 501 out of 582 locales 
How to reproduce:
Compile attached program and execute it in following way
# ./ctest `locale -a`
Expected results:
I'm not sure if uppercase letter should be alphabetically smaller that lower case or not, but I think that 
result must be stable despite of locale. And IMHO capital letter should precede non-capital one, i.e. strcoll
("D","d") must return negative value.

Comment 1 Nikita Shulga 2006-11-05 22:24:19 UTC
Created attachment 140425 [details]
Program that displays results of strcoll with different locales

Comment 2 Ulrich Drepper 2006-11-06 00:02:12 UTC
This is how it must be.  Some locales sorts lower case before upper case and
some the other way around.


Note You need to log in before you can comment on or make changes to this bug.