[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

apr xlate stuff (was: Re: UTF-8)

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-05-23 01:45:57 CEST

On Thu, May 23, 2002 at 01:29:18AM +0200, Marcus Comstedt wrote:
> Greg Stein <gstein@lyra.org> writes:
> > APR has got a number of functions for transcoding strings, so SVN might not
> > even need any. Further, the apr-iconv project is available for platforms
> > that don't have iconv() builtin.
>
> Hm, as far as I could see, the iconv stuff in apr was all empty. You
> mean there is a separate project that has to be checked out (like
> apr-util) to get it?

Yup. The 'apr-iconv' project. But that is really about an iconv()
replacement. I think most of your focus would be in apr_xlate since APR will
use the glibc iconv for you.

[ honestly, though, I'm not sure of apr-iconv's status; it also does not
  look like it is really hooked into apr_xlate right now ]

Just make sure to check the error return values. apr_xlate_open() is going
to return an error if the translation cannot be performed (e.g. you're on a
platform where iconv isn't present).

> > Again, note that iconv() is unportable, so the apr_xlate functions should be
> > used instead.
>
> Yeah, I know. I just got a bit miffed when I found that all the
> iconv/ dirs in APR were empty. Didn't know that there were
> xlate-functions to do the same thing. Given the feedback from you and
> Ulrich I should be able to make something much nicer. Thanks!

Cool!

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 23 01:43:41 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.