[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-02 16:36:46 CET

Joerg Hessdoerfer wrote:
>> > Problem: checkin was successful. Subsequent commits in a directory with
>> > umlauts now cause the error message "svn: Can't recode string".
>> Doesn't anyone have an idea what I may be doing wrong?

> Well, SVN tries to recode to your current locale. Guessing that the locale
> was correct on commit, and guessing your location in germany, and guessing
> you're on *NIX, you probably should set your locale to 'german' (or
> de_DE). See 'locale -a' for which locales you have installed.

Mh, maybe I'm misunderstanding how subversion is supposed to handle
different charsets. From what I read about svn my impression was that the
client normalizes all filenames to UTF8 - depending on the current locale -
and transmits the normalized file names to the server. From the strace I
did it also looks to me as if my local svn client did just that, before
URL-encoding the name.

Now I'm wondering why the subversion server wants to do any recoding at all?
I thought it'd just store the UTF8 names provided from the client and it'd
be the client's responsibility to recode these UTF8 names to the current
locale upon checkout / update.

What of this did I get wrong?

On the client LC_* is unset, LANG is set to "de_DE@euro" and the
filenames/dirnames in question are readable just fine in the console.

On the client, "locale -a" prints

$ locale -a
C
de_DE@euro
de_DE.iso885915@euro
de_DE.utf8
POSIX

while on the server it does print

# locale -a
C
POSIX
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE.utf8@euro
de_DE@euro
deutsch
en_GB.utf8
en_US.utf8
german

(So "de_DE@euro" is known to both the client and the server, if neccessary.)

Greetings,

  Gunter

-- 
"When all else fails, read the instructions." -- Cahn's Axiom
*** 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 2 16:39:45 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.