Follow-up Comment #11, bug #11004 (project coreutils): I'm afraid the glibc fix doesn't mean that we have an obvious fix for coreutils. I guess the idea is that we should go through the coreutils source and replace all instances of "setlocale (LC_ALL, "");" with "if (! setlocale (LC_ALL, "") && errno == ENOMEM) error (exit_failure, ENOMEM, "memory exhausted");". But we have no way of telling whether setlocale reliably sets errno. The Debian glibc bug tracker entry doesn't confirm that setlocale sets errno reliably in glibc 2.5. And even if it did, I don't offhand see any way at run-time, or even at configure-time, to tell whether the errno value is reliable. So I'm afraid coreutils is still stuck.
_______________________________________________________ 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