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

Re: Problems with accents in filenames

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-11-22 16:41:22 CET

Vincent Lefevre <vincent+svn@vinc17.org> writes:

> and subversion breaks itself when the user wants to use a different
> locale:

Let's go through this step by step as I had to make some assumptions
about what you did:

>>From an UXterm:

What locale is being used? (I going to assume it's a UTF-8 one.)

> $ svn add testé

Do you have "test\xe9" or "test\xc3\xa9" on disk? (I'm going to
assume it's "test\xc3\xa9".)

> $ svn commit
>
>>From an Xterm, with an ISO-8859-1 locale:
> $ svn st
> ? testé
> ! testé

Is this the same working copy, but with a different locale? (I assume
it is, and that you have changed your locale from UTF-8 to 8859-1.
The physical UTF-8 filename "test\xc3\xa9" no longer match the
expected 8859-1 filename "test\xe9", hence the output above. I
disagree with you that this is Subversion breaking.)

I don't understand your problem, if you want filenames to be UTF-8
then set a UTF-8 locale. If you do that Subversion will not allow any
names that aren't UTF-8. Are you seriously suggesting that
"test\xe9", a perfectly valid filename, should cause a Subversion
error? You can get what you want by setting a UTF-8 locale, why
should your encoding be enforced on others?

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 22 16:42:21 2003

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