public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/4085] New: iconv has wrong signature (non const input parameter)
@ 2007-02-21 13:22 john at cellform dot com
2007-02-23 8:04 ` [Bug localedata/4085] " drepper at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: john at cellform dot com @ 2007-02-21 13:22 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-23 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 13:22 [Bug localedata/4085] New: iconv has wrong signature (non const input parameter) john at cellform dot com
2007-02-23 8:04 ` [Bug localedata/4085] " drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).