[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Locales/sort bug



On 11/04/2010 02:29 PM, Rob Gom wrote:
Hi all,
do you think it's a bug in either libc or coreutils (sort)?

$ cat test.csv
aph3,"APP",""
aph3_devel,"TXT",""
aph3,"MiB",""

$ LC_ALL=C sort test.csv # expected
aph3,"APP",""
aph3,"MiB",""
aph3_devel,"TXT",""

$ LC_ALL=pl_PL sort test.csv  # why is that?
aph3,"APP",""
aph3_devel,"TXT",""
aph3,"MiB",""

$ LC_ALL=pl_PL.UTF-8 sort test.csv # another unexpected output
aph3,"APP",""
aph3_devel,"TXT",""
aph3,"MiB",""

Could anyone give me a hint? I know that this is LC_COLLATE related
(LC_ALL as shorter version), but don't know whether it is my fault or
upstream bug.

I'd appreciate any comments.


While it *might* be an upstream bug, it's unlikely. (The first thing I learned in my first CompSci class is that it's not the compiler's fault that my program doesn't work...)

You just don't know what the Polish "ASCII" collating sequence is.

--
Seek truth from facts.


Reply to: