Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
4.4.2
-
None
Description
QProcess: When passing in quotes in the middle of an argument they get mangled which can cause the application being started to not process those arguments correctly. It should be either possible to specify that the arguments should be untouched, or the manipulation of the quotes done internally should be removed to prevent this sort of thing occuring.
Example:
Doing:
MyHelperApp.exe -e="P:\Temp\ein test\err.dat"
works from the command line, but when trying to do this in Qt with:
QString strCommandLine = "MyHelperApp.exe";
QProcess *pSatProcess = new QProcess();
pSatProcess->setWorkingDirectory(strWorkingDir);
pSatProcess->start(strCommandLine, QStringList() << "-e=\"P:\\Temp
ein
test\\err.dat\"");
the command line:
MyHelperApp.exe "-e=P:\Temp\ein test\err.dat"
ends up being called.