Implement apostrophe in windows cmd args

Task-number: QTBUG-15379

Change-Id: I4a2ca942d2dbfa490302858b589e00bd91e25636
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
bb10
Jørgen Lind 2013-05-07 12:55:54 +02:00 committed by The Qt Project
parent 9a7bc0fc1b
commit c1e24f8838
1 changed files with 2 additions and 5 deletions

View File

@ -101,11 +101,8 @@ static QVector<Char*> qWinCmdLine(Char *cmdParam, int length, int &argc)
}
}
if (*p == '\\') { // escape char?
p++;
if (*p == Char('\"') || *p == Char('\''))
; // yes
else
p--; // treat \ literally
if (*(p+1) == quote)
p++;
} else {
if (!quote && (*p == Char('\"') || *p == Char('\''))) { // " or ' quote
quote = *p++;