[Bug localedata/4085] New: iconv has wrong signature (non const input parameter)

john at cellform dot com sourceware-bugzilla@sourceware.org
Wed Feb 21 13:22:00 GMT 2007


In iconv/iconv.h the definition of iconv is:
extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
                     size_t *__restrict __inbytesleft,
                     char **__restrict __outbuf,
                     size_t *__restrict __outbytesleft);

which is wrong.  
The second argument should be "const char **__restrict __inbuf".  This has been
fixed for sometime now in the libiconv project
http://libiconv.cvs.sourceforge.net/*checkout*/libiconv/libiconv/include/iconv.h.in
but not in glibc, which makes it hard to write code which is correct for both.

I checked for this bug against the glibc CVS on 21 Feb 2007

-- 
           Summary: iconv has wrong signature (non const input parameter)
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales at sources dot redhat dot com
        ReportedBy: john at cellform dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4085

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list