rcc: Fix line endings on Windows when redirected

Extend the fix 53d5811b0c432b845e453dfbef3f4237a1a71877
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>
This commit is contained in:
Friedemann Kleint 2020-04-20 07:29:25 +02:00
parent dc4e5af752
commit a54294369d

View File

@ -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);