qt5base-lts/tests/auto/corelib/tools/qcommandlineparser
David Faure 4ff6951550 Fix escape handling in qWinCmdArgs
-DKEY="VALUE" was correctly turned into -DKEY=VALUE,
but -DKEY=\"VALUE\" was turned into -DKEY=\VALUE"
due to the erroneous check ('quote' is still 0 when
encountering the first '\' character).

This fixes QCoreApplication::arguments() as used by
moc.exe after porting to QCommandLineParser.

Further investigation shows that double-quotes and single-quotes
are handled differently. The tests now ensure that this parser
respects what Windows sends in argv, and in particular that
QTBUG-15379 doesn't regress, as well as fixing QTBUG-30628.

Task-number: QTBUG-15379, QTBUG-30628

Change-Id: I95062c9a6022632b321b2f6fae3089f07be7b5c6
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-09-10 19:05:19 +02:00
..
testhelper Fix escape handling in qWinCmdArgs 2013-09-10 19:05:19 +02:00
qcommandlineparser.pro Long live QCommandLineParser! 2013-08-24 21:33:39 +02:00
tst_qcommandlineparser.cpp Fix escape handling in qWinCmdArgs 2013-09-10 19:05:19 +02:00
tst_qcommandlineparser.pro Long live QCommandLineParser! 2013-08-24 21:33:39 +02:00