bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NetBSD failure on nl_langinfo


From: Eric Blake
Subject: NetBSD failure on nl_langinfo
Date: Thu, 21 Oct 2010 17:03:04 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

Bruno;

I just noticed this failure on NetBSD 5.0.2, i386-unknown-netbsdelf5.0.2:

../../gltests/test-nl_langinfo.c:115: assertion failed
[1]   Abort trap (core dumped) LC_ALL=${LOCALE_...
FAIL: test-nl_langinfo.sh

LC_ALL=fr_FR.ISO8859-1 ./test-nl_langinfo 1

114         const char *currency = nl_langinfo (CRNCYSTR);
(gdb)
115         ASSERT (strlen (currency) >= (pass > 0 ? 1 : 0));
(gdb) p currency
$1 = 0xbbbc7761 ""
(gdb) p pass
$2 = 1

$ grep NL_LANGINFO gllib/Makefile
GNULIB_NL_LANGINFO = 1
HAVE_NL_LANGINFO = 1
REPLACE_NL_LANGINFO = 0
              -e 's|@''GNULIB_NL_LANGINFO''@|$(GNULIB_NL_LANGINFO)|g' \
              -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
              -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \

It doesn't help that NetBSD's locale(1) is buggy:
$ LC_ALL=C locale -ck LC_MONETARY
$

POSIX requires that it should have listed all the keywords within the LC_MONETARY category.

$ LC_ALL=fr_FR.ISO8859-1 locale -ck currency_symbol
LC_MONETARY
currency_symbol="Eu"

Any other information you need?

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]