Bug#284260: glibc: wcrtomb function returns incorrect value
Package: glibc
Severity: normal
see the manpage - it says this (and the code behaves that way). But that is
incorrect. The standard behavior does not ignore the wc parameter when s is
NULL:
A third case is when s is NULL. In this case wc is ignored, and the
function effectively returns wcrtomb(buf,L'\0',ps) where buf is an
internal anonymous buffer.
(And because it's used in ncursesw, that breaks some things that I'll have
to work around ;-)
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-td2
Locale: LANG=C, LC_CTYPE=C
Reply to: