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/



_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to