[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Coreutils 5.0.1: spurious error from uniq
From: |
Paul Eggert |
Subject: |
Re: Coreutils 5.0.1: spurious error from uniq |
Date: |
18 Jul 2003 11:52:46 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Andreas Schwab <address@hidden> writes:
> It looks like strcoll in glibc 2.3 is buggy in not preserving errno when
> there is no error. Setting LC_ALL to de_DE.UTF-8 causes the same failure.
> There are many failing file lookups during loading of the locale that seem
> to be the problem.
This sounds like it might be common bug, which we should workaround,
I guess at configure-time.
I can't reproduce the problem on my Debian GNU/Linux 3.0r1 box.
Does the following test program exit with nonzero status on your host?
If so, we could use it to see whether glibc is buggy.
#include <locale.h>
#include <string.h>
#include <errno.h>
int
main (void)
{
setlocale (LC_ALL, "en_US.UTF-8");
errno = 0;
exit (strcoll ("abc", "def") >= 0 || errno
|| strcoll ("ABC", "DEF") >= 0 || errno
|| strcoll ("123", "456") >= 0 || errno);
}