Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 16 Jul 2011 21:10:26 +0400
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
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.

Alexander

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ