[Top][All Lists]

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

Re: Bugreport 'sort'

From: Pádraig Brady
Subject: Re: Bugreport 'sort'
Date: Tue, 4 Mar 2008 14:24:27 +0000
User-agent: Thunderbird (X11/20071008)

Heijnen wrote:
> Hi,
> I want to report a bug in "sort" utility.

For the umpteenth time this locale "bug" has been reported,
because the default behaviour is unexpected and fixing it requires
knowledge of how locales and environment variables work.

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");
   fprintf(stderr, "Please be explicitly describe your data by doing either\n");
   fprintf(stderr, "`LC_ALL=C sort` or `LC_ALL=$LANG sort`\n"); /* sh syntax 
for brevity */


reply via email to

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