Bug 2963 - const in iconv arg 2
Summary: const in iconv arg 2
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: manual (show other bugs)
Version: unspecified
: P2 minor
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-26 19:48 UTC by gin
Modified: 2016-05-17 18:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gin 2006-07-26 19:48:15 UTC
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'.

<http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html>
specifies it to be `const char **'.  So do
<http://www.opengroup.org/products/publications/catalog/u055.htm>.

Those specifications may be wrong in some way, and there may be strong
reasons to leave the interface as it is.  But <(libc) Generic
Conversion Interface> neither states that specifications are
considered wrong in this way nor explains why the interface being
described should remain as it is.

<(libc) Generic Charset Conversion>, and many other <(libc)> sections,
do include even <comparisons with other implementations>, not
considering this improper.  Design considerations wrt standard
conformance are at least just as proper there.
Comment 1 gin 2006-08-14 15:21:54 UTC
Subject: 

The reasons / considerations lacking in manual are not trivial:
<http://sourceware.org/bugzilla/show_bug.cgi?id=2962#c2>.
Comment 2 gin 2006-08-14 15:26:50 UTC
Subject: 

The link in <#1> should be
<http://sourceware.org/bugzilla/show_bug.cgi?id=2962#c3>.
Comment 3 gin 2006-08-15 16:23:38 UTC
Subject: 

`libc/manual/charset.texi' was not changed since Tue Jul 22 20:05:55
2003 UTC, and still refers to XPG2, suggesting that everything is the
same since.  In fact, there were new open group standard issues after
XPG2, that changed `iconv' prototype, and `iconv' implementation and
documentation conforms to the newest standard versions as in
<http://www.opengroup.org/onlinepubs/009695399/functions/iconv.html>,
not to old ones.
Comment 4 Andreas Jaeger 2006-09-21 04:11:21 UTC
There's no bug here, we follow the latest standard.