[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strcoll fails sorting string with multiple words
From: |
Mathias Gruber |
Subject: |
Strcoll fails sorting string with multiple words |
Date: |
Fri, 8 Mar 2002 08:09:05 -0300 |
Hi,
I was testing PostgreSQL using Linux and found a strange bug when sorting
strings using collation.
First I considered this was a bug with that package. But after a long
research I found that the strcoll() function made the strange behavior.
The problem occurs when sorting string with multiple words. The routine
sorts the strings skiping blanks!
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).
Best Regards
Mathias August Gruber
address@hidden
Teste.c
Description: Binary data