Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 16 Jul 2011 21:10:26 +0400
From: Solar Designer <>
Subject: Re: LANG and LC_COLLATE

On Sat, Jul 16, 2011 at 06:57:59PM +0200, magnum wrote:
> -	sort < pw2 | uniq > pw3
> +	sort < pw2 | LC_COLLATE=C uniq > pw3
> Then it won't matter whether you run it directly or using "make test"

No, you absolutely have to run sort and uniq with the same locale
settings, like this:

	LC_COLLATE=C sort < pw2 | LC_COLLATE=C uniq > pw3

but it's easier to "export LC_COLLATE=C" at the start of the script.

> In my opinion this is a bug in uniq. National sorting order is one 
> thing, but who in their right mind would actually expect or *want* uniq 
> to filter out 'passĀ²' because there is a 'pass2'?

I am not sure about this one.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.