mirror of
https://github.com/reactos/CMake.git
synced 2025-02-07 12:26:40 +00:00
Merge topic 'utf8pipe'
076aef8e Windows: Use UTF-8 for pipes in CMake, CTest and CPack
This commit is contained in:
commit
bd6a269e1a
@ -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);
|
||||
|
@ -105,7 +105,7 @@ bool cmProcess::Buffer::GetLast(std::string& line)
|
||||
|
||||
int cmProcess::GetNextOutputLine(std::string& line, double timeout)
|
||||
{
|
||||
cmProcessOutput processOutput;
|
||||
cmProcessOutput processOutput(cmProcessOutput::UTF8);
|
||||
std::string strdata;
|
||||
for (;;) {
|
||||
// Look for lines already buffered.
|
||||
|
@ -160,7 +160,9 @@ int main(int ac, char const* const* av)
|
||||
#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(ac, av);
|
||||
|
@ -116,7 +116,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 encoding_args =
|
||||
cmsys::Encoding::CommandLineArguments::Main(argc, argv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user