bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] iconv.h differs on Mac OS X 10.4 and 10.5


From: Ryan Schmidt
Subject: [bug-gnu-libiconv] iconv.h differs on Mac OS X 10.4 and 10.5
Date: Mon, 2 Jun 2008 18:31:16 -0500

Hello all! I have a problem with iconv.h from libiconv 1.12 and the fact that it differs depending on whether it's installed on Mac OS X 10.4 or 10.5.

On Mac OS X 10.4 with Xcode 2.4.1 (or Xcode 2.5), and libiconv 1.12 installed by MacPorts, iconv.h defines the iconv() function this way:

extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);

On Mac OS X 10.5 with Xcode 3.0 (or Xcode 3.1 from iPhone SDK beta 6), the same version of libiconv defines the second parameter of iconv () differently:

extern size_t iconv (iconv_t cd, char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);

This causes problems for software that wants to work on both Mac OS X 10.4 and 10.5. See:

http://trac.macports.org/changeset?new=trunk%2Fdports%2Fdevel%2Fice- cpp%2FPortfile%4037235&old=trunk%2Fdports%2Fdevel%2Fice-cpp%2FPortfile %4037182

And:

http://trac.macports.org/ticket/15297

The developer of the pure language feels this is a bug in libiconv.

Or is this difference intentional, and if so, how are programmers who want to use iconv() supposed to deal with this?

Thanks for your help. Please include me on replies to this thread.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]