Re: Sorting and POTFILES.in

2003-02-11 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | Lars> sorted. | | Lars> sorting function and locale decides sorting order. | | I stand corrected, then. | | So, lars, would you be OK with replacing "sort -f -n" with a plain

Re: Sorting and POTFILES.in

2003-02-11 Thread Andre Poenitz
On Tue, Feb 11, 2003 at 04:56:17PM +0100, Jean-Marc Lasgouttes wrote: > Andre> Why? Can't this be used as instead of the 'sort | uniq' you > Andre> need? > > This is a command used in a makefile. If we write a C++ program > everytime someone has to think more than 30 seconds about a shell command,

Re: Sorting and POTFILES.in

2003-02-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Tue, Feb 11, 2003 at 04:42:38PM +0100, Jean-Marc Lasgouttes Andre> wrote: This could be solved in twelve lines or so in any Andre> language that has "map" >> Which is irrelevant to our problem, probably but... Andre> Why? Can't

Re: Sorting and POTFILES.in

2003-02-11 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> sorted. Lars> sorting function and locale decides sorting order. I stand corrected, then. So, lars, would you be OK with replacing "sort -f -n" with a plain "sort"? I do not understand why you used "-n" actually. JMarc

Re: Sorting and POTFILES.in

2003-02-11 Thread Andre Poenitz
On Tue, Feb 11, 2003 at 04:42:38PM +0100, Jean-Marc Lasgouttes wrote: > Andre> This could be solved in twelve lines or so in any language that > Andre> has "map" > > Which is irrelevant to our problem, probably but... Why? Can't this be used as instead of the 'sort | uniq' you need? > Andre> set

Re: Sorting and POTFILES.in

2003-02-11 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: | | Andre> On Tue, Feb 11, 2003 at 04:05:05PM +0100, Jean-Marc Lasgouttes | Andre> wrote: Do they need to be sorted at all? | >> Yes, probably, so that we can uniquify the list. | | And

Re: Sorting and POTFILES.in

2003-02-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Tue, Feb 11, 2003 at 04:05:05PM +0100, Jean-Marc Lasgouttes Andre> wrote: Do they need to be sorted at all? >> Yes, probably, so that we can uniquify the list. Andre> This could be solved in twelve lines or so in any language t

Re: Sorting and POTFILES.in

2003-02-11 Thread Andre Poenitz
On Tue, Feb 11, 2003 at 04:05:05PM +0100, Jean-Marc Lasgouttes wrote: > Andre> Do they need to be sorted at all? > > Yes, probably, so that we can uniquify the list. This could be solved in twelve lines or so in any language that has "map" #include #include #include int main() { set

Re: Sorting and POTFILES.in

2003-02-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Tue, Feb 11, 2003 at 03:51:42PM +0100, Jean-Marc Lasgouttes Andre> wrote: >> So what should we do? Maybe remove the options altogether and use a >> plain "sort"? Would that give the same result for everybody? Andre> Do they need

Re: Sorting and POTFILES.in

2003-02-11 Thread Andre Poenitz
On Tue, Feb 11, 2003 at 03:51:42PM +0100, Jean-Marc Lasgouttes wrote: > So what should we do? Maybe remove the options altogether and use a > plain "sort"? Would that give the same result for everybody? Do they need to be sorted at all? Andre' -- Those who desire to give up Freedom in order to

Sorting and POTFILES.in

2003-02-11 Thread Jean-Marc Lasgouttes
As Michael S pointed out, po/POTFILES.in gets updated every other commit just because the sort command has different semantics on different systems. This is a pain because it affects the po files too. Why is that? The current command used to sort is "sort -f -n", where -f is to ignore case and -n