On 2005-02-16 09:41:13 -0800, Per Bothner wrote:
> Preferably, the sort algorithm should match 'ls'.

FYI, the way ls (from the coreutils) sorts the filenames is
locale-dependent. :(

> No problem.  The client's request can include the current LOCALE value.
> However, I'm not sure that's derirable.  Obviously the charset and
> language used for filenames cannot be client-dependent.  The sort
> order could be client-dependent, but since it might not match the
> server language, I don't think it makes sense.  If I'm a German
> speaker working with repository containing English filenames, the
> sort order should be English, regardless of my LOCALE.

I agree. With French locales, the "-" character is ignored for
sorting (with ls, but not specifically, AFAIK), so I got strange
results when sorting filenames of the form: <number>-<number>.

> Having output in a well-specified order is very important.  How else
> would I be able to compare two 'diff' runs otherwise? [...]

Output could also be unspecified, but reproducible. That would be
sufficient to compare diffs.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

Reply via email to