[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: Lederrey Guillaume <Gehel-Lists_at_LedCom.ch>
Date: 2004-06-21 22:58:43 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le lundi, 21 Juin 2004 13.38, Dimitri Papadopoulos-Orfanos a écrit :
> If both LANG and LC_CTYPE are set to fr_CH, Subversion should be able to
> recode correctly. However the filesystem encoding under that locale on
> Linux is probably ISO 8859-1, not UTF-8. As already pointed out, this
> shouldn't be an issue, Subversion should be able to recode from ISO
> 8859-1 to UTF-8 and back.

  It is ISO 8859-1. I have to exchange files with poeple not using UTF-8 so I
cant switch to UTF-8 yet ...

> Actually I would suggest *unsetting* LC_CTYPE and setting only LANG,
> this seems to be the default on most distributions. Maybe this will help
> work around the problem.

  I tried, but I still have the same problem (cant recode string).

> I would suggest:
>
> 1) Set LANG to fr_CH and unset LC_CTYPE.
>
> 2) Send as attachments the output of command "ls -R" with LANG set to
> fc_CH and fr_CH.UTF-8. This way we can check whether there are any
> (hidden?) invalid characters in the filenames.

  Both files are attached. I do have a directory with accentuated character in
name (./justificatifs/téléphone) but I did alreay add some files without
problem. "svn status" run from justificatifs/téléphone gives :

$ svn status
A sunrise/24.07.2003.png
A sunrise/21.10.2003.png
A sunrise/21.02.2004.png
D sunrise/22.12.2003.png

  A commit from that directory fails (can't recode string).

> If the filenames are correct, it could be that the filenames recorded in
> the depository are uncorrectly encoded for some reason.

  If that is the case, is there a way to check it ? Or even to correct it ?

> Or that there is
> a bug in filename recoding somewhere.

  If I can do anything to help you find it ... I'm ready to try !

  Thanks a lot for your help ! It is still not working, but at least I have
the feeling that it might in some time ... ;-)

        Guillaume
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA10wEW+xV6X6No3gRAgGwAKDWghzZUS/2oN0PWMG5tmAKkpQFXQCeONGp
JcdUYcvbVapQGYycxn6vDfI=
=hQ4T
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Mon Jun 21 23:00:50 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.