[TSVN] Improper quoting when running external diff/merge?
From: Brian Wong <bdwong-net_at_shaw.ca>
Date: 2005-03-03 07:27:48 CET
Hi,
I have some odd quoting behavior to report.
I am writing a simple external diff program for .doc files in C++. I
C:\bin\externaldiff.exe %base %mine
When externaldiff.exe is run, I call GetCommandLineW() to get the
"C:\bin\externaldiff.exe" "C:\path\file1.doc" "C:\path\file2.doc"
Instead I get the following string (note the "missing" quote):
"C:\bin\externaldiff.exe "C:\path\file1.doc" "C:\path\file2.doc"
I would expect the former string because it is easy to parse, while the
The offending code seems to be in /trunk/src/TortoiseProc/Utils.cpp in
// is there an extension specific diff tool?
If I'm reading this right, it reads the registry key which contains
If I may suggest a fix, either:
Thank you for your attention.
Please CC replies to bdwong DASH net AT shaw DOT ca.
---------------------------------------------------------------------
|
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.