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 */
}

Pádraig


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to