bug-gnulib
[Top][All Lists]
Advanced

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

MirBSD mbtowc bug? failure on test-wcrtomb


From: Eric Blake
Subject: MirBSD mbtowc bug? failure on test-wcrtomb
Date: Mon, 13 Sep 2010 16:06:38 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.3

Bruno, this one probably needs your help for a gnulib workaround. On MirBSD 10 (20100815), wcrtomb is found but not replaced; leading to failure in the unit test:

ac_cv_func_wcrtomb=yes
ac_cv_have_decl_wcrtomb=yes
gl_cv_func_wcrtomb_retval=yes
gl_cv_have_raw_decl_wcrtomb=yes
GNULIB_WCRTOMB='1'
HAVE_WCRTOMB='1'
REPLACE_WCRTOMB='0'

../../gltests/test-wcrtomb.c:43: assertion failed
Abort trap (core dumped)
FAIL: test-wcrtomb.sh

Failing on 'LC_ALL=ja_JP ./test-wcrtomb 3' at this line:

  wc = (wchar_t) 0xBADFACE;
  iret = mbtowc (&wc, s, n);
  ASSERT (iret == n);

with n==2, iret==1, s=="\303\274\303\237er". Hmm - that means the failure doesn't appear to be in wcrtomb, but in mbtowc. But the only mention of mbtowc in config.log are lines such as:

configure:5636: checking whether mbrtowc works as well as mbtowc

--
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]