bug-glibc
[Top][All Lists]
Advanced

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

Re: type of iconv return value -1?


From: Simon Josefsson
Subject: Re: type of iconv return value -1?
Date: Sun, 10 Nov 2002 12:59:33 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.92 (i686-pc-linux-gnu)

Never mind, I confused iconv_open and iconv() because the man page was
in error:

RETURN VALUE
       The iconv function returns the number of characters converted in a non-
       reversible  way  during  this  call;  reversible  conversions  are  not
       counted.  In case of error, it sets errno and returns (iconv_t)(-1).

But this man page doesn't seem to come from glibc...

Simon Josefsson <address@hidden> writes:

> Shouldn't it be (iconv_t)-1 in charset.texi:
>
> ...
> @code{(size_t) -1} and @code{errno} is set appropriately.  In such cases
> ...
>       nconv = iconv (cd, &inptr, &insize, &wrptr, &avail);
>       if (nconv == (size_t) -1)
> ...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]