Andreas Schwab <[EMAIL PROTECTED]> 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);
}


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to