[cmake-developers] [PATCH v3 5/7] For consoles output on Windows use our own std::streambuf

Mike Gelfand mikedld at mikedld.com
Wed Jul 6 18:36:02 EDT 2016


On 07/07/2016 12:42 AM, clinton at elemtech.com wrote:
> From what I remember, WriteConsoleW doesn't support redirection to a
> file or pipe.  I don't see an alternative in the patch for the case
> where stdout is not attached to the console.
The SO thread I pointed at actually contained a check for whether
corresponding stream is linked to terminal or not. Replacing stream
buffers unconditionally is not right.

Regards,
Mike


More information about the cmake-developers mailing list