[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strcoll fails sorting string with multiple words
From: |
Petr Vandrovec |
Subject: |
Re: Strcoll fails sorting string with multiple words |
Date: |
Thu, 7 Mar 2002 21:40:33 +0100 |
On 7 Mar 02 at 17:20, Mara e Mathias Gruber wrote:
> I've attached a sample C code that illustrates the problem. I reproduced the
> problem using RH Linux 7.
>
> Just compile the program and set the LC_ALL variable to any western language
> (I've used pt_BR).
(1) Example got lost somewhere.
(2) Are you sure that this is not correct behavior for your locale?
Anyway, it works correctly for en_US and cs_CZ (I have no other
locales here; en_US says that "AT" is before "A T", while cs_CZ says
that "AT" is after "A T"). Even with pt_BR it works correctly here
(strcoll("AT", "A T") returns -1 and strcoll("A T", "AT") returns +1).
So look for special patches your vendor provided to glibc, 2.2.5-3
provided by Debian works.
Best regards,
Petr Vandrovec
address@hidden