[Top][All Lists]
[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: |
Paul Eggert |
Subject: |
[bug #11004] Results of "sort" fail "sort -c" check if LANG is set and memory is low |
Date: |
Tue, 15 May 2007 16:39:51 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) |
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/