Implement apostrophe in windows cmd args
Task-number: QTBUG-15379 Change-Id: I4a2ca942d2dbfa490302858b589e00bd91e25636 Reviewed-by: Andy Shaw <andy.shaw@digia.com>bb10
parent
9a7bc0fc1b
commit
c1e24f8838
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue