diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-04 06:10:59 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-03-04 06:11:24 -0800 |
| commit | 4806aaf460465b972ad1b6203ca744431b296ade (patch) | |
| tree | df37ae1893d3bd40b1680d9bf831c170a08e212b /toolsrc/src/vcpkg_System.cpp | |
| parent | c055def45369d89c3b3fca3e57b57a9547d3b6a6 (diff) | |
| download | vcpkg-4806aaf460465b972ad1b6203ca744431b296ade.tar.gz vcpkg-4806aaf460465b972ad1b6203ca744431b296ade.zip | |
[vcpkg] Remove more uses of iostreams. Force 'C' locale -- localization is TODO.
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_System.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
