This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]