bug-coreutils
[Top][All Lists]
Advanced

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

[bug #11004] Results of "sort" fail "sort -c" check if LANG is set and m


From: James Youngman
Subject: [bug #11004] Results of "sort" fail "sort -c" check if LANG is set and memory is low
Date: Thu, 05 Oct 2006 13:26:56 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060724 Firefox/1.0.8 (Ubuntu package 1.0.8)

Follow-up Comment #7, bug #11004 (project coreutils):

Please note the the two invocations of "sort" are always with the same value
of $LANG.   The only aspect of the environment which is different between the
initial and the "-c" invocation of sort is the virtual memory limit (ulimit
-v).   

If the two invocations of sort were with different values of LC_ALL or LANG,
I would strongly agree with you.  

As it is, I would still assert that if LANG or LC_ALL is set, and sort
produces output which is not correctly sorted according to the rules for the
selected environment, it should return a nonzero status in order to indicate
to the caller that it has failed.

I think then that your suggestion regarding the value returned by setlocale()
and errno is probably the right answer.   


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?11004>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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