You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by jean-frederic clere <jf...@fujitsu-siemens.com> on 2001/03/20 18:37:14 UTC

iconv problems

Hi,

I have detected that iconv (iconv(), iconv_open() and iconv_close()) are not
working as APR expects it on some platforms (BS2000 and ReliantUnix at least).

There are 2 ways of arranging the problem:
1 - Patch code where needed so that this iconv works correctly.
2 - Add apr_iconv(), apr_iconv_open() and apr_iconv_close() to APR.

Of course I prefer the number 2...

Have someone the same problem?

What to do for platform that have not iconv at all? (Well is covered by
HAVE_ICONV).
Note that BS2000 is an EBCDIC platform therfore I need a conversion.

Cheers

Jean-frederic

Re: iconv problems

Posted by Jeff Trawick <tr...@bellsouth.net>.
jean-frederic clere <jf...@fujitsu-siemens.com> writes:

> Hi,
> 
> I have detected that iconv (iconv(), iconv_open() and iconv_close()) are not
> working as APR expects it on some platforms (BS2000 and ReliantUnix
> at least).

Perhaps you can explain the difference in behavior?

> There are 2 ways of arranging the problem:
> 1 - Patch code where needed so that this iconv works correctly.
> 2 - Add apr_iconv(), apr_iconv_open() and apr_iconv_close() to APR.

Either is possible, of course.  We wouldn't export apr_iconv_* as
formal APR APIs so the usefulness of such is lessened.  This makes me
wonder what the differences are, how much code is exposed to the
difference, etc.

> What to do for platform that have not iconv at all? (Well is covered by
> HAVE_ICONV).

APR cares about HAVE_ICONV... The APR app cares about APR_HAS_XLATE 

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Re: iconv problems

Posted by "William A. Rowe, Jr." <ad...@rowe-clan.net>.
From: "jean-frederic clere" <jf...@fujitsu-siemens.com>
Sent: Tuesday, March 20, 2001 11:37 AM    


> Hi,
> 
> I have detected that iconv (iconv(), iconv_open() and iconv_close()) are not
> working as APR expects it on some platforms (BS2000 and ReliantUnix at least).
> 
> There are 2 ways of arranging the problem:
> 1 - Patch code where needed so that this iconv works correctly.
> 2 - Add apr_iconv(), apr_iconv_open() and apr_iconv_close() to APR.
> 
> Of course I prefer the number 2...
> 
> Have someone the same problem?
> 
> What to do for platform that have not iconv at all? (Well is covered by HAVE_ICONV).
> Note that BS2000 is an EBCDIC platform therfore I need a conversion.

note that the repository apr-iconv provides a starting point for an 'aprized'
iconv engine, from the FreeBSD platform.  My key goals are knocking out their bsd
specific dso code and replacing it with apr_dso calls.  If you want an ebcdic port,
this is the sandbox.

Bill