You are here: PSPad forum > Bug report / Hlášení chyb > 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

4.6.1 (2707) external diff tool: Paths broken if they contain spaces

#1 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

Posted by: syntech | Date: 2016-01-14 09:31 | IP: IP Logged

I just found out that paths to external diff tools won't work if they contain spaces somewhere. In my case I want to find differences in file1.txt and file2.txt:

c:\Portable\1gb Stick\_Software\office\PSPad\file1.txt
c:\Portable\1gb Stick\_Software\office\PSPad\file2.txt

This path is transferred to the external diff tool as c:\Portable\1gb (for the first file) and Stick\_Software\office\PSPad\file2.txt (for the second file)

Options: Reply | Quote | Up ^


#2 Re: 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

Posted by: vbr | Date: 2016-01-14 09:48 | IP: IP Logged

syntech:
I just found out that paths to external diff tools won't work if they contain spaces somewhere.
...

Hi,
I haven't checked the implementation here, but just a trivial possibility would be to enclose the path between quotes: "...".
Can this possibly help?
regards,
vbr

Options: Reply | Quote | Up ^


#3 Re: 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

Posted by: syntech | Date: 2016-01-14 09:57 | IP: IP Logged

I can't change the path, because PSPad does it for me. I have one file open and right-click on the tab of another file and select TextDiff (or so).

Options: Reply | Quote | Up ^


#4 Re: 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

Posted by: pspad | Date: 2016-01-14 11:03 | IP: IP Logged

syntech:
I can't change the path, because PSPad does it for me. I have one file open and right-click on the tab of another file and select TextDiff (or so).

Parameters for your external tool:
Program settings / Text difference
Diff tool parameters:
"%File1%" "%File2%"

Not all problems are caused by PSPad. This one isn't.

Options: Reply | Quote | Up ^


#5 Re: 4.6.1 (2707) external diff tool: Paths broken if they contain spaces [solved]

Posted by: syntech | Date: 2016-01-14 11:12 | IP: IP Logged

Of course not. I just didn't remember that parameter (kind of Alzheimer?). I've made the change as suggested and now it's working. So, mea culpa and thanks!

Options: Reply | Quote | Up ^


#6 Re: 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

Posted by: Jaime | Date: 2016-03-26 14:44 | IP: IP Logged

pspad:
syntech:
I can't change the path, because PSPad does it for me. I have one file open and right-click on the tab of another file and select TextDiff (or so).

Parameters for your external tool:
Program settings / Text difference
Diff tool parameters:
"%File1%" "%File2%"

Not all problems are caused by PSPad. This one isn't.

Brilliant, was having the same problem, just wanted to say thanks for the fix as it works.

Options: Reply | Quote | Up ^


#7 Re: 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

Posted by: Maya21 | Date: 2017-01-23 10:31 | IP: IP Logged

pspd:
syntech:
I can't change the path, because PSPad does it for me. I have one file open and right-click on the tab of another file and select TextDiff (or so).

Parameters for your external tool:
Program settings / Text difference
Diff tool parameters:
"%File1%" "%File2%"

Not all problems are caused by PSPad. This one isn't.

This path is transferred to the external diff tool as _c:\Portable\1gb_
(for the first file) and _Stick\_Software\office\PSPad\file2.txt_ (for the
second file)

Options: Reply | Quote | Up ^


#8 Re: 4.6.1 (2707) external diff tool: Paths broken if they contain spaces

Posted by: pspad | Date: 2017-01-23 10:48 | IP: IP Logged

Maya21:
pspd:
syntech:
I can't change the path, because PSPad does it for me. I have one file open and right-click on the tab of another file and select TextDiff (or so).

Parameters for your external tool:
Program settings / Text difference
Diff tool parameters:
"%File1%" "%File2%"

Not all problems are caused by PSPad. This one isn't.

This path is transferred to the external diff tool as _c:\Portable\1gb_
(for the first file) and _Stick\_Software\office\PSPad\file2.txt_ (for the
second file)

I guess you ddidn't include double quotes. It's basics syntax from MS Dos times - path, containing spaces must be enclosed into quotes.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR