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

RE: "Can't recode string" again...

From: Gunter Ohrner <G.Ohrner_at_post.rwth-aachen.de>
Date: 2006-01-05 10:40:30 CET

Hunkel, Manfred wrote:
> | > Client: svn 1.2.3, LANG=de_DE@euro (ISO 8859-15), Filenames with
> | > umlauts
> | > Server: svn 1.1.1, bdb 4.2 backend, using svnserve, "C" locale

> | > Problem: checkin was successful. Subsequent commits in a directory
> | > with umlauts now cause the error message "svn: Can't recode string".

> Most (all?) of the SVN-commands would balk when attempting to handle
> filenames containing umlauts, and none of the LC_* or LANG settings
> provided relief. In my setup, I'm using SVN via Apache on a NetBSD server
> I had installed via pkgsrc. It turned out that the pkgsrc config didn't
> include the iconv library required for recoding. After I'd rebuilt SVN

Ah, ok, maybe this will help me to finally get on the right track. :-)

However I tried to find information on svn and libiconv and could not find
very much... libiconv is not even listed in the requriements section of the
INSTALL file and there exists no configure-switch to tell the build process
to look for it. (I checked both svn 1.1.4 which I'm using on the server and
svn 1.2.3 which I'm using on the client.)

Digging in subversion's code revelead that a failed call to an apr function

    apr_xlate_conv_buffer
within function
    convert_to_stringbuf
in the source file
    ./subversion/libsvn_subr/utf.c

causes the error to be emmited.

( write(3, "( 2 ( edit-pipeline )
      41:svn://192.168.42.1/home/misc/Spr%C3%BCche ) ", 69) = 69
   read(3, "( failure ( ( 22 19:Can\'t recode string
      28:subversion/libsvn_subr/utf.c 363 ) ) ) ", 4096) = 82 )

So, will I need to rebuild Apache2 / libapr? What did you change exactly to
get working binaries / libraries?

One thing I *still* do not understand is why the server tries to to any
recodes at all, every doc I find just talks about the server working with
UTF8 only, so why is there any need to recode between charsets on the
server side?

Greetings.

  Gunter

-- 
"Today Is A Good Day For Someone Else To Die!"
        -- (Terry Pratchett, Feet of Clay)
*** PGP-Verschlüsselung bei eMails erwünscht :-) *** PGP: 0x1128F25F ***
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 5 10:43:12 2006

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

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