[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fileutils/textutils LC_COLLATE support
From: |
Corin Hartland-Swann |
Subject: |
Re: fileutils/textutils LC_COLLATE support |
Date: |
Fri, 19 Oct 2001 12:00:52 +0100 (BST) |
Hi Paul,
On Fri, 19 Oct 2001, Paul Eggert wrote:
> > However, can I persuade you to add a --binary option (or similar) to force
> > straight byte-order sorting? This would allow users to keep the default
> > locale definition for collation (so that things were displayed in the
> > correct order in lists), but to force sort(1) not to use it.
>
> Why not just use "LC_ALL=C sort", if you want a C-locale sort? That's
> just as easy to use as "sort --by-byte" or whatever; and it's portable
> to all POSIX implementations, as opposed to being GNU-specific.
Because it would be documented in the man page and it would make it more
immediately obvious (to people like me) that the byte ordering is not the
default action, and how to get it if you want it...
Also because it's easier to call from perl (because that's what I'm
doing) without changing LC_ALL for the whole process.
Just as an aside, do you need to set LC_ALL=C, or is it just the same
setting LC_COLLATE=C? And is C the same as POSIX in this context?
Regards,
Corin
/------------------------+-------------------------------------\
| Corin Hartland-Swann | Tel: +44 (0) 20 7491 2000 |
| Commerce Internet Ltd | Fax: +44 (0) 20 7491 2010 |
| 22 Cavendish Buildings | Mobile: +44 (0) 79 5854 0027 |
| Gilbert Street | |
| Mayfair | Web: http://www.commerce.uk.net/ |
| London W1K 5HJ | E-Mail: address@hidden |
\------------------------+-------------------------------------/