From owner-freebsd-standards@FreeBSD.ORG Thu May 20 01:50:05 2010 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6A231065673 for ; Thu, 20 May 2010 01:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C44388FC13 for ; Thu, 20 May 2010 01:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4K1o4LW009612 for ; Thu, 20 May 2010 01:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4K1o4N1009611; Thu, 20 May 2010 01:50:04 GMT (envelope-from gnats) Date: Thu, 20 May 2010 01:50:04 GMT Message-Id: <201005200150.o4K1o4N1009611@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Edwin Groothuis Cc: Subject: Re: misc/146742: iconv (3) has a wrong definition according to the standards X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Edwin Groothuis List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 01:50:05 -0000 The following reply was made to PR standards/146742; it has been noted by GNATS. From: Edwin Groothuis To: freebsd-gnats-submit@FreeBSD.org, gabor@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@mavetju.org Weblog: http://www.mavetju.org/weblog/