bug-coreutils
[Top][All Lists]
Advanced

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

Re: Localization based problem with sort


From: James Youngman
Subject: Re: Localization based problem with sort
Date: Tue, 17 Jan 2006 14:55:32 +0000
User-agent: Mutt/1.5.9i

On Tue, Jan 17, 2006 at 02:13:47PM +0100, Dirk Stoecker wrote:

> So please tell me a way to use the sort program in contexts which allow no 
> environment variable settings. I will be happy to accept it.

#! /bin/sh
cat > $HOME/bin/sort <<EOF
#! /bin/sh
LC_ALL=C
export LC_ALL
exec /usr/bin/sort "$@"
EOF
chmod 555 $HOME/bin/sort
PATH="$HOME"/bin:"$PATH"


> Clean design is always good, but it should not reduce the usability. I 
> have a problem, which is not solvable for now. I don't care for this only 
> for theoretical reasons, but have a pratical problem.
> 
> > Also, just as you didn't know about the LC_COLLATE option, the rest of
> > the world will not know about the new options, either, so these don't
> > seem to present much of an advantage.
> 
> Well, options are usually documented in the manual pages. Also the 
> documentation can contain any additional notes about portability issues 
> when using the option (or not using it). And BTW the docs could also have 
> a note about LC_COLLATE changing sort ordering totally.

They already do, though.  On my system, such a note appears both in
the Texinfo documentation and in the manual page.

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]