[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-08 23:57:02 CET

(Fullquote for reference.)

Gunter Ohrner wrote:
> I already found a few references to this error but no discussion seemed to
> give a definitive solution to this problem.
>
> Configuration:
> 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".
>
> strace shows that this error message is generated by the *server* process:
>
> ,----[ ]
> | 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
> `----
>
> This is what I do not understand. I always thought subversion would
> normalize all strings to UTF-8 before juggling with them, so I'm wondering
> why the server process complains, it should not have to recode anything?
> The URL it gets looks like url-encoded UTF-8 to me...

Ok, I think after a few days and several commits and updates from two
different machines I can confirm that it works for me(TM).

Just for the records: The problem was the following(!): The server's locale.
svnserve ran, as stated above, in a rather stripped down environment, using
the "C" locale. This caused some internal (temporary?) string recodings it
does to fail.
Note that this failure was caused by the names of the files in the
repository it was told to work with.

Fix: I changed the server's locale to UTF8 based "de_DE.utf8" by configuring
the server machine to support it and adding an

    export LANG=de_DE.utf8

inside the svnserve invoke script I use, and everything worked fine. Bummer.

Greetings,

  Gunter

-- 
The question seldom addressed is *where* Medusa had snakes. Underarm 
hair is an even more embarassing problem when it keeps biting the top 
of the deodorant bottle.        -- (Terry Pratchett, Soul Music)
*** 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 Mon Jan 9 00:09:00 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.