The glibc 2.2.4 function mbrtowc() crashes.
% cat glibcbug.c
#include <wchar.h>
main(){
mbstate_t ps;
mbrtowc(NULL, NULL, 0, &ps);
}
% ./glibcbug
glibcbug: mbrtowc.c:91: __mbrtowc: Assertion `__mbsinit (data.__statep)' failed.
Aborted
% /lib/libc.so.6
GNU C Library stable release version 2.2.4, by Roland McGrath et al.
Copyright (C) 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.95.3 20010315 (SuSE).
Compiled on a Linux 2.4.9 system on 2001-09-20.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Berkeley DB glibc 2.1 compat library by Thorsten Kukuk
linuxthreads-0.9 by Xavier Leroy
NoVersion patch for broken glibc 2.0 binaries
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <[EMAIL PROTECTED]>.
Andries
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/