From eb2f5f33c96840efef46e97d994182a25540bb17 Mon Sep 17 00:00:00 2001 From: Jertzukka Date: Sat, 12 Aug 2023 10:18:57 +0300 Subject: Linux: Flush stdout explicitly when reading stdin (#1172) Rules of automatic flushing of stdout buffer is implementation-defined behaviour. In glibc this is automatically flushed, but we can't rely on it for other implementations such as musl. --- src/Main/TextUserInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Main') diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp index 37b346bd..637d5caa 100644 --- a/src/Main/TextUserInterface.cpp +++ b/src/Main/TextUserInterface.cpp @@ -1047,7 +1047,7 @@ namespace VeraCrypt void TextUserInterface::DoShowString (const wxString &str) const { - wcout << str.c_str(); + wcout << str.c_str() << flush; } void TextUserInterface::DoShowWarning (const wxString &message) const -- cgit v1.2.3