[Top][All Lists]

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

Re: Bugreport 'sort'

From: James Youngman
Subject: Re: Bugreport 'sort'
Date: Tue, 4 Mar 2008 20:40:43 +0000

On Tue, Mar 4, 2008 at 3:21 PM, Eric Blake <address@hidden> wrote:
> Pádraig Brady <P <at> draigBrady.com> writes:
>  > I wonder should we flag the common case on exit with something like:
>  >
>  > if (only_ascii_read && LC_COLLATE!="C" && !LC_ALL) {
>  >    fprintf(stderr, "Warning, sorting ASCII data in non C locale\n");
>  Nice thought.  But it would violate POSIX if done by default, and doing it by
>  other that default would require the invention of a new option - and what are
>  the chances that a newbie is going to be aware of the existence of a new GNU-
>  specific flag?
>  I think we're stuck with educating people about POSIX via a FAQ.

We could perhaps do something for the "sort -c" case.    But failing
that, perhaps we could exit with status 0.000001 or (0+1i) :)


reply via email to

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