rcc: Fix line endings on Windows when redirected
Extend the fix 53d5811b0c
to work for the file generation mode as well.
Pick-to: 5.15
Fixes: PYSIDE-1273
Change-Id: I5a91e2de87b44658f276cea87cbd730452b1bd78
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
bb10
parent
dc4e5af752
commit
a54294369d
|
|
@ -357,8 +357,7 @@ int runRcc(int argc, char *argv[])
|
|||
// Make sure QIODevice does not do LF->CRLF,
|
||||
// otherwise we'll end up in CRCRLF instead of
|
||||
// CRLF.
|
||||
if (list)
|
||||
mode &= ~QIODevice::Text;
|
||||
mode &= ~QIODevice::Text;
|
||||
#endif // Q_OS_WIN
|
||||
// using this overload close() only flushes.
|
||||
out.open(stdout, mode);
|
||||
|
|
|
|||
Loading…
Reference in New Issue