diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-24 19:08:51 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-24 19:08:51 -0800 |
| commit | 9b8afccc9db0959cb3a47d77fd0255096011e245 (patch) | |
| tree | 11b93739d8f7a0abf5d26aac90a7376220b35f93 /toolsrc/src/main.cpp | |
| parent | d0fb13f67710481a2f270d2840623c2f497b3190 (diff) | |
| download | vcpkg-9b8afccc9db0959cb3a47d77fd0255096011e245.tar.gz vcpkg-9b8afccc9db0959cb3a47d77fd0255096011e245.zip | |
Properly convert wchar to char before printing
Diffstat (limited to 'toolsrc/src/main.cpp')
| -rw-r--r-- | toolsrc/src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/src/main.cpp b/toolsrc/src/main.cpp index 08e65391f..b78319167 100644 --- a/toolsrc/src/main.cpp +++ b/toolsrc/src/main.cpp @@ -13,6 +13,7 @@ #include "vcpkg_Input.h" #include "Paragraphs.h" #include "vcpkg_info.h" +#include "vcpkg_Strings.h" using namespace vcpkg; @@ -242,7 +243,7 @@ int wmain(const int argc, const wchar_t* const* const argv) << "EXCEPTION='" << exc_msg << "'\n" << "CMD=\n"; for (int x = 0; x < argc; ++x) - std::cerr << argv[x] << "|\n"; + std::cerr << Strings::utf16_to_utf8(argv[x]) << "|\n"; std::cerr << "\n"; } |
