SCIENTIFIC-LINUX-USERS Archives

June 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Florian Philipp <[log in to unmask]>
Reply To:
Florian Philipp <[log in to unmask]>
Date:
Wed, 15 Jun 2011 14:39:27 +0200
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (898 bytes) , signature.asc (268 bytes)
Am 15.06.2011 14:24, schrieb Nico Kadel-Garcia:
> On Tue, Jun 14, 2011 at 4:43 PM, Chetan Tiwari <[log in to unmask]> wrote:
>> Hi Valery,
>>
>> My LANG was set to en_US.utf8. I changed it to C as you suggested and that
>> worked! Thanks much for that tip.
>>
>> Best regards,
>>
>> Chetan
> 
> Yeah, "LANG" is messing with a lot of programs that used to work well.
> It's worse with the "sort" utility. en_US.utf8 is case insensitive,
> and there is no way to restore proper case sensitivity to ordering
> except to set LANG to something sane, like 'C' or 'POSIX'.

Well, with a natural language setting, sort actually sorts
alphabetically, not ASCII-betically. Therefore it is just as sane as
every dictionary or book index. You are right, though. Something like a
--bytes switch for enabling the old behavior would be nice.

Note that setting LANG is not enough. You need to set LC_ALL.

Regards,
Florian Philipp



ATOM RSS1 RSS2