You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@lyra.org> on 2002/05/22 23:45:57 UTC

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

On Thu, May 23, 2002 at 01:29:18AM +0200, Marcus Comstedt wrote:
> Greg Stein <gs...@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