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

Re: pre-commit hook that stops CaSe-InSenSiTive collisions

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-06-09 06:11:57 CEST

Jeremy Bettis wrote:

>>Jeremy Bettis wrote:
>>
>>
>>
>>>----- Original Message -----
>>>From: "Branko Čibej" <brane@xbc.nu>
>>>
>>>
>>>
>>>
>>>> * Why doesn't the Win32 variant open the svnlook pipe in utf8 mode?
>>>> I wonder if svnlook does, in fact, print utf8 paths. Hmmm... no it
>>>> does not. Svnlook will only write utf-8 filenames if your current
>>>> locale is utf-8. So much for this script then -- it won't work.
>>>> You should use the bindings instead.
>>>>
>>>>
>>>>
>>>>
>>>The utf8 didn't work for me with ActivePerl, so I took it out.
>>>
>>>
>>>
>>>
>>You're missing the point. svnlook does not output paths in utf-8.
>>Therefore your hook a) won't work if the server uses a different default
>>locale than the client (which is very probable), and b) will interpret
>>the paths incorrectly if it thinks they're utf-8 when they're actually
>>
>>
>not.
>
>
>That's all fine and good, but I can't find any documentation on the
>bindings.
>
Perhaps you should ask. :.-)

>Also, your case a) is not relevant, since all the paths here are
>examined on the server, the client doesn't come into play,
>
Yes it is relevant. The client does local->utf8 conversion, and the
server does utf8->local conversion. If the two "local"s aren't the same,
the conversion will fail or worse, will be incorrect.

>also for me, all my machines are in the same locale.
>
>
Sorry, that's not good enough for a script that you want to maintain in
the svn repository.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 9 06:13:06 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.