summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-11-30 10:52:59 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-12-02 15:38:38 +0000
commit8d7d481772e251d979ccf37c1405451e6f6780de (patch)
tree3e7663f67458d7466a47a3908a5f2357870ec661 /src/corelib
parentefcc2d492561a1eb55db3f76124e24ad4ae7d447 (diff)
doc: add a note about cmd.exe and the QProcess string splitting/joining
cmd.exe uses a different set of characters to split arguments on, which is not compatible with CommandLineToArgvW(). See https://technet.microsoft.com/en-us/library/bb490880.aspx. Task-number: QTBUG-49641 Change-Id: Ic90fe6b1cbe84978a02fffff141b8f961a43ad28 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/io/qprocess.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp
index b09c99985c..952116b9db 100644
--- a/src/corelib/io/qprocess.cpp
+++ b/src/corelib/io/qprocess.cpp
@@ -2098,7 +2098,9 @@ QByteArray QProcess::readAllStandardError()
\b{Windows:} The arguments are quoted and joined into a command line
that is compatible with the \c CommandLineToArgvW() Windows function.
For programs that have different command line quoting requirements,
- you need to use setNativeArguments().
+ you need to use setNativeArguments(). One notable program that does
+ not follow the \c CommandLineToArgvW() rules is cmd.exe and, by
+ consequence, all batch scripts.
The OpenMode is set to \a mode.