atom feed1 message in org.freebsd.freebsd-standardsRe: misc/146742: iconv (3) has a wron...
FromSent OnAttachments
Edwin GroothuisMay 19, 2010 6:49 pm 
Subject:Re: misc/146742: iconv (3) has a wrong definition according to the standards
From:Edwin Groothuis (edw@mavetju.org)
Date:May 19, 2010 6:49:26 pm
List:org.freebsd.freebsd-standards

The following reply was made to PR standards/146742; it has been noted by GNATS.

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.