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.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.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg.cpp | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp index f40126ecf..a263be8bc 100644 --- a/toolsrc/src/vcpkg.cpp +++ b/toolsrc/src/vcpkg.cpp @@ -180,9 +180,6 @@ int wmain(const int argc, const wchar_t* const* const argv) if (argc == 0) std::abort(); - std::cout.sync_with_stdio(false); - std::cout.imbue(std::locale::classic()); - g_timer.start(); atexit([]() { @@ -231,17 +228,22 @@ int wmain(const int argc, const wchar_t* const* const argv) exc_msg = "unknown error(...)"; } TrackProperty("error", exc_msg); - std::cerr - << "vcpkg.exe has crashed.\n" - << "Please send an email to:\n" - << " " << Commands::Contact::email() << "\n" - << "containing a brief summary of what you were trying to do and the following data blob:\n" - << "\n" - << "Version=" << Commands::Version::version() << "\n" - << "EXCEPTION='" << exc_msg << "'\n" - << "CMD=\n"; + + fflush(stdout); + System::print( + "vcpkg.exe has crashed.\n" + "Please send an email to:\n" + " %s\n" + "containing a brief summary of what you were trying to do and the following data blob:\n" + "\n" + "Version=%s\n" + "EXCEPTION='%s'\n" + "CMD=\n", + Commands::Contact::email(), + Commands::Version::version(), + exc_msg); + fflush(stdout); for (int x = 0; x < argc; ++x) - std::cerr << Strings::utf16_to_utf8(argv[x]) << "|\n"; - std::cerr - << "\n"; + System::println("%s|", Strings::utf16_to_utf8(argv[x])); + fflush(stdout); } |
