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

Re: "Open with..." does not handle single quotes in file name.

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 24 Jul 2009 19:24:15 +0200

On 23.07.2009 22:39, C. Conrad Cady wrote:
> After doing an Update, I get a window listing the results of the
> Update. If I right-mouse-click on an entry in that list, I can choose
> "Open with..." and it lets me choose an applicaition to use to open the
> file.
>
> This typically works fine, unless the file name has a single quote in
> it. If I attempt to open a file which has a single quote in the name,
> the helper application is only given the name up to the first quote.
>
> For example, if the updated file is named
> c:\temp\the 'best' file.txt
> the helper application seems to be only passed
> c:\temp\the
>
> I am using "TortoiseSVN 1.6.3, Build 16613 - 32 Bit , 2009/06/20
> 09:28:19" under Windows XP.

That's unfortunate, but this is actually 'by design'. You see, the path
TSVN uses comes from the second column in that dialog. And the content
of that column can be anything, not just paths. So the function parses
the string of that column to find something that could be a path. And
since most messages shown in that column en-quote paths with single
quotes, the parser uses those single quotes to extract the path.

Maybe I can improve the function a little bit, but paths that have
single quotes in it will most likely always cause problems in that dialog.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2375325
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-07-24 19:24:45 CEST

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

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