Edmund GRIMLEY EVANS writes:

> With glibc-2.2.3, mbrtowc(&wc, "", 0, &ps) seems to return 0 instead
> of (size_t)(-2). I think this is a bug.

It's my interpretation of the ISO C 99 standard that the return value
should be (size_t)(-2). But I agree with Markus that it's a borderline
that you should avoid.

> the priority should be to provide correct man pages. The man page I
> looked at said nothing about n not being zero

The man page is correct. The standard says nothing explicit about what
happens if n is zero either.

Bruno
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to