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

Re: APR trunk, xlate issues

From: Stefan Sperling <stsp_at_elego.de>
Date: Sat, 23 Jul 2011 11:22:37 +0200

On Sat, Jul 23, 2011 at 02:24:12AM -0000, Igor Galić wrote:
> Hey guys,
>
> I've been debugging a make check failure of
> Subversion trunk/apr trunk/serf trunk, together with danielsh.
>
> This seems only to occur with FreeBSD:
>
> igalic_at_beasdix ...ubversion/subversion/tests/libsvn_subr (svn)-[trunk:1149770] % ./subst_translate-test
> subversion/tests/libsvn_subr/subst_translate-test.c:75: (apr_err=22)
> subversion/libsvn_subr/subst.c:1890: (apr_err=22)
> subversion/libsvn_subr/utf.c:817: (apr_err=22)
> subversion/libsvn_subr/utf.c:779: (apr_err=22)
> subversion/libsvn_subr/utf.c:624: (apr_err=22)
> svn_tests: E000022: Non-ASCII character (code 199) detected, and unable to convert to/from UTF-8
> FAIL: subst_translate-test 1: test svn_subst_translate_string2()
> subversion/tests/libsvn_subr/subst_translate-test.c:124: (apr_err=22)
> subversion/libsvn_subr/subst.c:1894: (apr_err=22)
> subversion/libsvn_subr/utf.c:797: (apr_err=22)
> subversion/libsvn_subr/utf.c:779: (apr_err=22)
> subversion/libsvn_subr/utf.c:624: (apr_err=22)
> svn_tests: E000022: Non-ASCII character (code 198) detected, and unable to convert to/from UTF-8
> FAIL: subst_translate-test 2: test svn_subst_translate_string2(encoding = NULL)
> PASS: subst_translate-test 3: test repairing svn_subst_translate_string2()
> PASS: subst_translate-test 4: test svn_subst_translate_cstring2()
>
> Note that the corresponding apr test succeeds on the same system:
>
> igalic_at_beasdix /tmp/build/apr/test (svn)-[trunk:1149693] % ./testall testxlate
> testxlate : SUCCESS
> All tests passed.
>
> So perhaps we aren't covering this thoroughfully enough?

Which iconv implementation is APR using?
This could be some problem in iconv.

On OpenBSD I have to apply this patch to GNU iconv to avoid
a similar problem in Subversion's prop_test 22 (with apr-util 1.3.12).
But I don't recall the details.

--- lib/aliases.gperf.orig Wed Oct 24 23:41:32 2007
+++ lib/aliases.gperf Wed Oct 24 23:47:38 2007
@@ -10,6 +10,7 @@ struct alias { int name; unsigned int encoding_index;
 %pic
 %%
 US-ASCII, ei_ascii
+646, ei_ascii
 ASCII, ei_ascii
 ISO646-US, ei_ascii
 ISO_646.IRV:1991, ei_ascii
        
Received on 2011-07-23 11:24:09 CEST

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.