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

Re: Encoding problem causes SVN to misbehave on OS X Leopard

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Mon, 23 Mar 2009 20:53:00 -0500

On Mar 23, 2009, at 05:19, Sergio Lopes wrote:

> I've search with whatever words and expressions I could come up to
> but failed to find an answer to the problem I'm facing.
>
> I found this old thread about the same problem, http://svn.haxx.se/
> users/archive-2005-12/0191.shtml, but no solution nor hint on how
> to resolve the situation.
>
> I have been using SVN on Windows and Linux without any major
> problems, every client I used from command line subversion to
> tortoiseSVN has always behaved accordingly.
>
> Now I changed to OS X and started getting problems on filenames
> with no-ASCII characters.
>
> SVN does not complain about them, but sees the files as deleted and
> new, so I now have several files that show as new files and, at the
> same time, as deleted files.

That's this bug:

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

A possible workaround is available if you install Subversion via
MacPorts and use the +unicode_path variant. Note that this has some
tradeoffs which you should read about and understand before using
that variant.

> After a bit of cleaning up on the repository, that made me delete
> quite a number of files, one of these problematic files slip trough
> and was commit, now I can't make a checkout out of the repository,
> nor can I seem to be able to delete, or otherwise reset those
> files' status.

What happens when you try?

> On my Mac, svn keeps working, somehow committing changes, but I
> fear that the repository is no longer working properly.

Have you run "svnadmin verify" on your repository? What does it say?

> If found some mention of the locale settings, the 'locale' command
> on my machine gives back:
>
> LANG=
> LC_COLLATE="C"
> LC_CTYPE="UTF-8"
> LC_MESSAGES="C"
> LC_MONETARY="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_ALL=
>
> I've also found how to make svn read the files' names correctly, or
> at least makes them show properly at my terminal, using:
>
> alias svn="env LC_CTYPE=pt_PT.UTF-8 /opt/subversion/bin/svn"
>
> I defined that alias in my .profile file so that it changed the
> encoding to svn alone and doesn't change other settings in my system.

Usually you would just set LANG to the correct value for your system.
For example, on my Mac, I set LANG=en_US.UTF-8. I would think you
would want that set for all programs; I don't see why it should be
Subversion-specific.

Note that I'm on Tiger. On Leopard, I believe you can have the
Terminal set LANG automatically for you. Look around in the
preferences and window settings.

> I'm completely lost as to what steps I can take to solve the
> problem. I'll probably create some pre-commit hook that prevents
> such files to be sent to the repository, but I need to be able to
> solve this problem, making the repository work again.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-24 02:54:46 CET

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.