misc/146742: iconv (3) has a wrong definition according to the
standards
Edwin Groothuis
edwin at mavetju.org
Thu May 20 01:50:05 UTC 2010
The following reply was made to PR standards/146742; it has been noted by GNATS.
From: Edwin Groothuis <edwin at mavetju.org>
To: freebsd-gnats-submit at FreeBSD.org, gabor at freebsd.org
Cc:
Subject: Re: misc/146742: iconv (3) has a wrong definition according to the standards
Date: Thu, 20 May 2010 11:39:54 +1000
> the definition of the iconv (3) function is wrong, FreeBSD appears to adhere to the gnu iconv
> http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.3.html
>
> while the opengroup
>
> http://www.opengroup.org/onlinepubs/009695399/functions/iconv.html
>
> specifies it to:
> size_t iconv(iconv_t cd, char **restrict inbuf,
> size_t *restrict inbytesleft, char **restrict outbuf,
> size_t *restrict outbytesleft);
>
> notice how the definition of the second parameter is not (const char**).
Gabor@ might want to have his say on this one.
Edwin
--
Edwin Groothuis Website: http://www.mavetju.org/
edwin at mavetju.org Weblog: http://www.mavetju.org/weblog/
More information about the freebsd-standards
mailing list