cmMessenger: Revert to non-color messages on Windows
Since commit 0a0a0f8a (cmMessenger: Color messages to terminal by type, 2021-05-18, v3.21.0-rc1~146^2) the message output no longer goes through our custom streambuf on Windows that converts output encoding. This can cause messages to be printed with the wrong encoding in a Windows Console. It also causes messages to have a mix of LF and CRLF newlines because `stderr` converts LF to CRLF but our custom streambuf does not. Revert to using just `cerr` for messages on Windows. Another approach will be needed to achieve color output on Windows later. Fixes: #22444
Showing
- Source/cmakemain.cxx 11 additions, 0 deletionsSource/cmakemain.cxx
- Tests/RunCMake/message/RunCMakeTest.cmake 2 additions, 0 deletionsTests/RunCMake/message/RunCMakeTest.cmake
- Tests/RunCMake/message/newline-script.cmake 2 additions, 0 deletionsTests/RunCMake/message/newline-script.cmake
- Tests/RunCMake/message/newline-stdout.txt 2 additions, 0 deletionsTests/RunCMake/message/newline-stdout.txt
- Tests/RunCMake/message/newline.cmake 9 additions, 0 deletionsTests/RunCMake/message/newline.cmake
Loading
Please register or sign in to comment