Eric Blake wrote:
> Nelson H. F. Beebe gave me an off-list report of a failure of test-wcrtomb
> on FreeBSD 5.0-RELEASE #0
> ...
> checking for wcrtomb... yes
> checking whether wcrtomb return value is correct... yes
> 
> In file included from regex.c:60:
> regex_internal.c: In function `build_wcs_upper_buffer':
> regex_internal.c:320: warning: passing arg 3 of `wcrtomb' from incompatible 
> pointer type
> regex_internal.c:388: warning: passing arg 3 of `wcrtomb' from incompatible 
> pointer type

These warnings are probably harmless.

> test-wcrtomb.c:59: assertion failed
> Abort trap (core dumped)
> FAIL: test-wcrtomb.sh
> 
> Bruno, it looks like you need to enhance your replacement module to detect
> and work around this.

Yes. Nelson, can you please give a little more infor about the locale and the
character that caused this problem? To do this, run these debugging sessions;
what I need is the line number and the local variables values in main():

  env LC_ALL=fr_FR.UTF-8 gdb test-wcrtomb
  run 2

  env LC_ALL=ja_JP.EUC gdb test-wcrtomb
  run 3

  env LC_ALL=zh_CN.GB18030 gdb test-wcrtomb
  run 4

Btw, the bug is probably fixed in FreeBSD 5.1.

Bruno



Reply via email to