On Tue, 2003-08-05 at 00:51, Tzafrir Cohen wrote: > On Tue, Aug 05, 2003 at 12:14:09AM +0300, Oren Held wrote: > > Hi, > > > > I've just encountered one of the strangest bugs I've seen in Linux.. > > > > Just like an amateur Operating System, one of the core unix tools - sort > > - behaves different on different Linux (or more correct: sort) versions. > > > > When I try to sort the next input: > > ab c > > a c > > > > It makes sense that 'a c' would come before 'ab c', and this is how it > > works with coreutils 5.0. But on an older version (I'm not sure that in > > ALL the older versions - actually textutils 2.0.21 works well) the > > results are vice versa. > > Is it the different coreutils? > > I have coreutils 5.0 of current debian unstable. With LC_COLLATE set to > "C" I get "a c" first. Without overriding LC_COLLATE I get "ab c" first.
I've checked it and it's indeed LC_COLLATE. I was too sure it was find :) (Yatzati Leitzan kmo she'omrim) Anyway something is still very strange. It happens even when LC_COLLATE is en_US, at least in my Mandrake 9.1. Sort works as it should only when LC_COLLATE is unset, C or POSIX. Anybody has Mdk 9.1 and can approve it? - Oren ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]