Re: Localization based problem with sort

2006-01-17 Thread The Wanderer
James Youngman wrote: On Tue, Jan 17, 2006 at 02:13:47PM +0100, Dirk Stoecker wrote: 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 d

Re: Localization based problem with sort

2006-01-17 Thread Philip Rowlands
On Tue, 17 Jan 2006, 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. I would cheekily point out that the reason you see the unwelcome sort order in the first place is caused by an envi

Re: Localization based problem with sort

2006-01-17 Thread Jim Meyering
James Youngman <[EMAIL PROTECTED]> wrote: > 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 < #! /bin/sh

Re: Localization based problem with sort

2006-01-17 Thread Brian Dessent
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. You can use "env LC_COLLATE=C sort -opts" as the sort command. Or 'sh -c "LC_COLLATE=C sort -opts"'. Brian _

Re: Localization based problem with sort

2006-01-17 Thread Dirk Stoecker
On Tue, 17 Jan 2006, James Youngman 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 < #! /bin/sh > LC_ALL=C > export LC_ALL > exec /usr/bin/sort "$@" > EOF

Re: Localization based problem with sort

2006-01-17 Thread James Youngman
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 < Clean design is always good, but it should not reduce the u

Re: Localization based problem with sort

2006-01-17 Thread Dirk Stoecker
On Tue, 17 Jan 2006, James Youngman wrote: > > b) Even advanced users do not know of LC_COLLATE. I myself use UNIX > >operating systems for more than 10 years and it is the very first time > >I get in contact with this special environment variable. It is very > >unintuitive to set e

Re: Localization based problem with sort

2006-01-17 Thread James Youngman
On Tue, Jan 17, 2006 at 08:44:30AM +0100, Dirk Stoecker wrote: > b) Even advanced users do not know of LC_COLLATE. I myself use UNIX >operating systems for more than 10 years and it is the very first time >I get in contact with this special environment variable. It is very >unintuit

Re: Localization based problem with sort

2006-01-16 Thread Dirk Stoecker
On Mon, 16 Jan 2006, Paul Eggert wrote: > Dirk Stoecker <[EMAIL PROTECTED]> writes: > > > What about the following solution? It is not exactly implementing the > > above options, but nevertheless fixes the problem directly: > > But isn't this equivalent to setting LC_COLLATE="C" and LC_TIME="C"

Re: Localization based problem with sort

2006-01-16 Thread Paul Eggert
Dirk Stoecker <[EMAIL PROTECTED]> writes: > What about the following solution? It is not exactly implementing the > above options, but nevertheless fixes the problem directly: But isn't this equivalent to setting LC_COLLATE="C" and LC_TIME="C" in the environment? Why bother to have two differen

Re: Localization based problem with sort

2006-01-16 Thread Dirk Stoecker
On Fri, 13 Jan 2006, Paul Eggert wrote: > > What would be the problem when there is an option "--no-dictionary-order" > > and "--no-ignore-case"? > > The problem is implementing those options, not specifying them. I > don't know how to implement them. If you could supply a patch to > implement

Re: Localization based problem with sort

2006-01-13 Thread Dirk Stoecker
Hello, > > What would be the problem when there is an option "--no-dictionary-order" > > and "--no-ignore-case"? > > The problem is implementing those options, not specifying them. I > don't know how to implement them. If you could supply a patch to > implement them, that would help. I will h

Re: Localization based problem with sort

2006-01-13 Thread Paul Eggert
Dirk Stoecker <[EMAIL PROTECTED]> writes: > What would be the problem when there is an option "--no-dictionary-order" > and "--no-ignore-case"? The problem is implementing those options, not specifying them. I don't know how to implement them. If you could supply a patch to implement them, tha

Re: Localization based problem with sort

2006-01-13 Thread Dirk Stoecker
Hello, > Dirk Stoecker <[EMAIL PROTECTED]> writes: > > > when using the "sort" utility in German language the two options > > > > -d, --dictionary-order > > -f, --ignore-case > > > > are activated by default. It is impossible to have other sorting methods > > then. > > > > Would you

Re: Localization based problem with sort

2006-01-12 Thread Paul Eggert
Dirk Stoecker <[EMAIL PROTECTED]> writes: > when using the "sort" utility in German language the two options > > -d, --dictionary-order > -f, --ignore-case > > are activated by default. It is impossible to have other sorting methods > then. > > Would you please add negative forms of t

Localization based problem with sort

2006-01-12 Thread Dirk Stoecker
Hello, when using the "sort" utility in German language the two options -d, --dictionary-order -f, --ignore-case are activated by default. It is impossible to have other sorting methods then. Would you please add negative forms of these options, so they can be deactivated in local