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

RE: TortoiseSVN bug: compare Open Office documents fails when filename contains spaces

From: Jonathan Ashley <jonathan.ashley_at_praxis-his.com>
Date: 2007-10-02 10:29:45 CEST

I have a work-around for this now; the following change to the diff-odt
script
fixes the symptoms of the problem:

--- diff-odt.vbs 2007-02-19 19:38:24.000000000 +0000
+++ diff-odt.vbs 2007-10-02 07:56:48.393291000 +0100
@@ -48,11 +48,13 @@
 'Adjust the paths for OO
 sBaseDoc=Replace(sBaseDoc, "\", "/")
 sBaseDoc=Replace(sBaseDoc, ":", "|")
+sBaseDoc=Replace(sBaseDoc, "%", "%25")
 sBaseDoc=Replace(sBaseDoc, " ", "%20")
 sBaseDoc="file:///"&sBaseDoc
 sBaseDoc=objUriTranslator.translateToInternal(sBaseDoc)
 sNewDoc=Replace(sNewDoc, "\", "/")
 sNewDoc=Replace(sNewDoc, ":", "|")
+sNewDoc=Replace(sNewDoc, "%", "%25")
 sNewDoc=Replace(sNewDoc, " ", "%20")
 sNewDoc="file:///"&sNewDoc
 sNewDoc=objUriTranslator.translateToInternal(sNewDoc)

It's not really the right thing to do - I think the real fix is to stop
Tortoise
from saving the name with spaces converted to '%20' in the first place -
but it
works for me.

Regards,

--
Jon Ashley
> -----Original Message-----
> From: Jonathan Ashley [mailto:jonathan.ashley@praxis-his.com] 
> Sent: 13 September 2007 08:11
> To: dev@tortoisesvn.tigris.org
> Subject: TortoiseSVN bug: compare Open Office documents fails 
> when filename contains spaces
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Oct 2 10:34:38 2007

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

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