From owner-freebsd-bugs@FreeBSD.ORG Thu May 20 00:00:18 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 614D7106566C for ; Thu, 20 May 2010 00:00:18 +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 2567C8FC0A for ; Thu, 20 May 2010 00:00:18 +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 o4K00Hcg013201 for ; Thu, 20 May 2010 00:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4K00H5E013197; Thu, 20 May 2010 00:00:17 GMT (envelope-from gnats) Resent-Date: Thu, 20 May 2010 00:00:17 GMT Resent-Message-Id: <201005200000.o4K00H5E013197@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Riccardo Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F1071065670 for ; Wed, 19 May 2010 23:53:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4E0F18FC12 for ; Wed, 19 May 2010 23:53:31 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4JNrU0j082108 for ; Wed, 19 May 2010 23:53:30 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o4JNrUBq082107; Wed, 19 May 2010 23:53:30 GMT (envelope-from nobody) Message-Id: <201005192353.o4JNrUBq082107@www.freebsd.org> Date: Wed, 19 May 2010 23:53:30 GMT From: Riccardo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/146742: iconv (3) has a wrong definition according to the standards X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 00:00:18 -0000 >Number: 146742 >Category: misc >Synopsis: iconv (3) has a wrong definition according to the standards >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 20 00:00:17 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Riccardo >Release: 8.0 >Organization: >Environment: >Description: 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**). >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: