On Mar 19, 2008, at 11:40, Etienne Miret wrote:
> I’ve made an import on a svn repository with my locale incorrectly
> set to 'fr_FR', which led it to interpret my filenames as ISO-
> Latin-1, although they were UTF-8. Hence, the names are currently
> stored in my repository in double UTF-8.
>
> After (correctly) setting the locale to 'fr_FR.UTF-8', I ran 'svn
> status' on my working directory, and got exactly the result I
> expected:
> $ svn status
> ? Impérialisme
> ! ImpeÌrialisme
> The files with the wrong name is reported missing, and the one with
> the correct name is reported not to be versioned.
>
> Now I intended to delete my file, and correct the name by a 'svn
> update' followed by a 'svn move'. However :
> $ svn update
> A ImpeÌrialisme
>
> $ svn status
> ? ImpeÌrialisme
> ? Impérialisme
> ! ImpeÌrialisme
>
> $ rm Impérialisme
>
> $ svn mv ImpeÌrialisme Impérialisme
> A Impérialisme
> svn: Working copy 'ImpeÌrialisme' locked
> svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for
> details)
>
> $ svn status
> ? ImpeÌrialisme
> ? Impérialisme
> ! + Impérialisme
> ! ImpeÌrialisme
> Obviously 'svn' doesn’t correctly compares UTF-8 strings. The
> issue seems to be that there are several codes for the same
> character. For example 'é' can be 0xC3A9 (LATIN SMALL LETTER E WITH
> ACUTE) or 0x65CC81 (LATIN SMALL LETTER E + COMBINING ACUTE ACCENT).
> Unfortunately, I wasn’t lucky enough for subversion and my OS to
> always use the same form.
>
> I’m running subversion 1.4.4 on Mac OS X 10.5.2.
>
> Is this a known bug, and is there any workaround?
Sounds like this bug, which is indeed a bigger problem for Mac users
(specifically users of the Mac OS Extended filesystem):
http://subversion.tigris.org/issues/show_bug.cgi?id=2464
There even appears to be a patch.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-20 01:39:35 CET