You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bart De Gruyter <bd...@pobox.com> on 2009/07/29 14:42:04 UTC

locale issues on mac os X

Hi,

I'm having the following issue:

Recently a user added files with accents to the repository from a 
windows machine and since then I get the following issue. When I do "svn 
st" on the command line I see:

$ svn st
?       Functional Analysis/Internal Documents Client/Profil des 
compétences spécifiques.doc
!       Functional Analysis/Internal Documents Client/Profil des 
compétences spécifiques.doc

In other words: svn st does not seem to recognize that the file it 
misses is really on the filesystem.
I can perfectly go to that file and open it.

My system has:
Mac os x 10.5.7
subversion client 1.6.3 (r38063)

In my .profile I have set the following environment variable:
LC_CTYPE="en_US.UTF-8"

$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

I'm sure I have been able to store accented files in the past, but now 
this seems to be problematic and I don't understand why...

I've tried setting LANG to en_US.UTF-8 as well, to no avail.

On the debian system with the same LC_CTYPE set we do not have this 
issue. Note that we use svn client version 1.4.4 (r25188). I can't 
upgrade it that easily to see if it also starts failing with 1.6.3...

Kind regards,
Bart De Gruyter

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2376621

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: locale issues on mac os X

Posted by Bart De Gruyter <bd...@pobox.com>.
Hi Ryan,

Thanks a lot for this hint. I've installed the subversion client on 
macports with
sudo port install subversion +unicode_path
as you suggested.

It works properly now.

There was still one exception where it did not seem to work, but I've 
renamed that file so it does not contain the "special" characters anymore.

The exception was:
"Functional Analysis/GPO - grille critères d'évaluation.xls"

Thanks a lot for the answer, it solved my issues.

I also found the following references via your answer:

http://groups.google.com/group/versions/browse_thread/thread/0bb7c64b800715e1/c7fc43fa25ce7808?lnk=raot
http://svn.collab.net/repos/svn/trunk/notes/unicode-composition-for-filenames
http://svn.haxx.se/dev/archive-2007-07/0476.shtml
http://www.unicode.org/reports/tr15/tr15-29.html

For completeness I would like to add that I am using my subversion 
client on a Mac OS Extended Case sensitive, Journaled filesystem.

Kind regards,
Bart De Gruyter


Ryan Schmidt wrote:
> On Jul 29, 2009, at 09:42, Bart De Gruyter wrote:
>
>   
>> I'm having the following issue:
>>
>> Recently a user added files with accents to the repository from a
>> windows machine and since then I get the following issue. When I do  
>> "svn
>> st" on the command line I see:
>>
>> $ svn st
>> ?       Functional Analysis/Internal Documents Client/Profil des
>> compétences spécifiques.doc
>> !       Functional Analysis/Internal Documents Client/Profil des
>> compétences spécifiques.doc
>>     
>
> That is this issue, and is not related to locales but to the way in  
> which Mac OS X stores UTF-8 filenames on disk (decomposed) vs. the  
> way other OSes do so (composed):
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=2464
>
> If your Subversion is installed using MacPorts, you can rebuild it  
> using the +unicode_path variant to get one possible fix for this  
> issue, though the fix may have side-effects.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2376643
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2376879

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: locale issues on mac os X

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 29, 2009, at 09:42, Bart De Gruyter wrote:

> I'm having the following issue:
>
> Recently a user added files with accents to the repository from a
> windows machine and since then I get the following issue. When I do  
> "svn
> st" on the command line I see:
>
> $ svn st
> ?       Functional Analysis/Internal Documents Client/Profil des
> compétences spécifiques.doc
> !       Functional Analysis/Internal Documents Client/Profil des
> compétences spécifiques.doc

That is this issue, and is not related to locales but to the way in  
which Mac OS X stores UTF-8 filenames on disk (decomposed) vs. the  
way other OSes do so (composed):

http://subversion.tigris.org/issues/show_bug.cgi?id=2464

If your Subversion is installed using MacPorts, you can rebuild it  
using the +unicode_path variant to get one possible fix for this  
issue, though the fix may have side-effects.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2376643

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].