diff options
author | Dāvis Mosāns <davispuh@gmail.com> | 2016-11-14 04:05:08 +0200 |
---|---|---|
committer | Dāvis Mosāns <davispuh@gmail.com> | 2016-11-30 00:38:48 +0200 |
commit | 076aef8e45a91e83f9a7d879712fd70778d67c92 (patch) | |
tree | d9a22fd4cac33ecea83dca50447358e9fe931f81 /Source/CPack | |
parent | 44c978a2dab96b44ed2dd7470f532c4aa4c7da7c (diff) | |
download | cmake-076aef8e45a91e83f9a7d879712fd70778d67c92.tar.gz |
Windows: Use UTF-8 for pipes in CMake, CTest and CPack
Applications which process CMake output will need to decode it as UTF-8
instead of console's codepage.
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cpack.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index fa526aec56..af80cbf76d 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -91,7 +91,9 @@ int main(int argc, char const* const* argv) #if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE) // Replace streambuf so we can output Unicode to console cmsys::ConsoleBuf::Manager consoleOut(std::cout); + consoleOut.SetUTF8Pipes(); cmsys::ConsoleBuf::Manager consoleErr(std::cerr, true); + consoleErr.SetUTF8Pipes(); #endif cmsys::Encoding::CommandLineArguments args = cmsys::Encoding::CommandLineArguments::Main(argc, argv); |