This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2962] New: const in iconv arg 2
- From: "gin at mo dot msk dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 Jul 2006 19:03:02 -0000
- Subject: [Bug libc/2962] New: const in iconv arg 2
- Reply-to: sourceware-bugzilla at sourceware dot org
Versions: all known, from 2.2.4 to 2.4. This is why leaving version
unspecified.
`iconv' arg 2 is documented and declared in `iconv.h' to be `char
**__restrict', not `const char **' as
<http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html>
specifies. In addition to differing with this standard, it is also
incompatibility with other `iconv' implementation, including one in
gnu `libiconv' as configured by default when no other `iconv'
implementation is installed, which uses `const char **' in this case.
(It will cause build error if application is compiled with `-Werror'
or equivalent.)
Certainly can have applications configure themselves to adapt to such
incompatibilities. And better not to put such a burden on everybody
using `iconv', at least when switching between just 2 implementations
from the same project.
--
Summary: const in iconv arg 2
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: gin at mo dot msk dot ru
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2962
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.