[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 (locale problem ?)

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2004-06-12 09:31:52 CEST

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Le vendredi, 11 Juin 2004 18.00, Dimitri Papadopoulos-Orfanos a écrit :
> > >>That's probably a typo, but you need to set LANG, not LAND.
>
> > It's a known issue, I don't know if it qualifies as a bug or a feature.
> > The repository seems to require all filenames to be UTF-8-encoded.
> > However if I recall correctly, under GNU/Linux filenames are
> > UTF-8-encoded only under an UTF-8 locale such as fr_CH.UTF-8.

This is somewhat misleading. Yes, the repository keeps filenames in UTF-8,
so does the client internally. This has nothing to do with the encoding of
the local filesystem.

 
> OK, I tried to set LC_CTYPE and LANG to fr_CH.UTF-8. At least it chages
> the
> error, but it still doesnt work :-( Now I get :
>
> $ svn update
> svn: Valid UTF-8 data
> (hex: 74)
> followed by invalid UTF-8 sequence
> (hex: e9 6c e9 70)
>
> I guess that's because my filesystem isnt actually UTF-8 (was created
> before
> changing the locales). I would probabl require to rename a few files ...
> But
> I dont know which one. I guess it is the filename that is a problem and
> not
> file content (I read subversion treats all files as binary) but I am not
> really sure about this ...

Sure, because you are telling Subversion that your filenames are UTF-8
encoded when in fact they are not. The "Can't recode string" error message
usually means that you did not set the LANG or LC_CTYPE env vars at all; in
those cases Subversion doesn't know what the source encoding is, so it can't
recode.

Assuming that LANG and LC_CTYPE were not set at all, you need to set them to
fr_CH, unless you recode all filenames on your system to be UTF-8
compliant...

> Also, for a number of reason, I would like to keep my fr_CH locale and
> not
> change it to UTF-8. Is there a way to keep it but still use subversion ?
>

bye,

Erik.

-- 
+++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jun 12 09:32:55 2004

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.