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

Re: i18n hell.

From: Marcus Comstedt <marcus_at_mc.pp.se>
Date: 2002-07-11 21:46:21 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> So I compiled subversion with --enable-utf8, and suddenly started
> getting errors on *every* invocation of 'svn':
>
> apr_error: #22, src_err 0 : <Invalid argument>
> (charset translator procurement failed)
>
> So I traced into our call to apr/i18n/unix/xlate.capr_xlate_open().
>
> This function had "UTF-8" passed in already, and the value
> APR_LOCALE_CHARSET caused the code to run nl_langinfo(CODESET). The
> return value from nl_langinfo was "ISO8859-1".
>
> Then we call iconv_open() on these two strings: bam, I get an EINVAL
> error. What's invalid, you ask?
>
> It turns out that my iconv only accepts "ISO-8859-1", not "ISO8859-1":

What are your $LC-variables set to? Maybe FreeBSD is being stupid
about this and just returning whatever you set without verifying that
it's valid?

  // Marcus

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 11 21:53:00 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.