summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-02 14:53:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-12-02 14:53:53 (GMT)
commitbd6a269e1acf7f5634d05bb085d9e12cf51e9e35 (patch)
treeef0e4ace0ce97ebdeb23d745d78979d2dce558eb /Source/CPack
parentba946930dd6e1de5aa99123084a5506f7542e3b4 (diff)
parent076aef8e45a91e83f9a7d879712fd70778d67c92 (diff)
downloadCMake-bd6a269e1acf7f5634d05bb085d9e12cf51e9e35.zip
CMake-bd6a269e1acf7f5634d05bb085d9e12cf51e9e35.tar.gz
CMake-bd6a269e1acf7f5634d05bb085d9e12cf51e9e35.tar.bz2
Merge topic 'utf8pipe'
076aef8e Windows: Use UTF-8 for pipes in CMake, CTest and CPack
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cpack.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index fa526ae..af80cbf 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);