From 4806aaf460465b972ad1b6203ca744431b296ade Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 4 Mar 2017 06:10:59 -0800 Subject: [vcpkg] Remove more uses of iostreams. Force 'C' locale -- localization is TODO. --- toolsrc/src/vcpkg_System.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toolsrc/src/vcpkg_System.cpp') diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp index 2b37da685..9c849e8d8 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -14,8 +14,8 @@ namespace vcpkg::System int cmd_execute(const wchar_t* cmd_line) { - // Flush cout before launching external process - std::cout << std::flush; + // Flush stdout before launching external process + fflush(stdout); // Basically we are wrapping it in quotes const std::wstring& actual_cmd_line = Strings::wformat(LR"###("%s")###", cmd_line); @@ -25,8 +25,8 @@ namespace vcpkg::System exit_code_and_output cmd_execute_and_capture_output(const wchar_t* cmd_line) { - // Flush cout before launching external process - std::cout << std::flush; + // Flush stdout before launching external process + fflush(stdout); const std::wstring& actual_cmd_line = Strings::wformat(LR"###("%s")###", cmd_line); -- cgit v1.2.3