From 8c018aec6b6563784229452fe29a27764b070e34 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 24 May 2018 09:01:00 +0200 Subject: Flush wcout before exiting the app Apparently not flushing caused the output to be truncated on some windows machines when redirecting to a file. Task-number: QTBUG-67860 Change-Id: I82a49286114dcb4dd1f264153363999ec81edd6f Reviewed-by: Thiago Macieira --- src/qtdiag/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qtdiag/main.cpp b/src/qtdiag/main.cpp index 2f5e2e9ee..de56d7201 100644 --- a/src/qtdiag/main.cpp +++ b/src/qtdiag/main.cpp @@ -66,5 +66,6 @@ int main(int argc, char **argv) flags |= QtDiagVk; std::wcout << qtDiag(flags).toStdWString(); + std::wcout.flush(); return 0; } -- cgit v1.2.1