Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2010 23:53:30 GMT
From:      Riccardo <rmottola@users.sf.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/146742: iconv (3) has a wrong definition according to the standards
Message-ID:  <201005192353.o4JNrUBq082107@www.freebsd.org>
Resent-Message-ID: <201005200000.o4K00H5E013197@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005192353.o4JNrUBq082107>