On 07/21/2016 01:36 PM, Dāvis Mosāns wrote:
> Anyway I improved this in places where it was easy, but in some places it's
> more complicated...
>
> For example
>
> while ((p = cmsysProcess_WaitForData(cp, &data, &length, CM_NULLPTR), p)) {
> // Put the output in the right place.
> if (p == cmsysProcess_Pipe_STDOUT && !output_quiet) {
> if (output_variable.empty()) {
> cmSystemTools::Stdout(data, length);
>
> Here we output buffer immediately.
>
> while ((out || err) &&
> (p = cmsysProcess_WaitForData(cp, &data, &length, CM_NULLPTR), p)) {
> if (out && p == cmsysProcess_Pipe_STDOUT) {
> if (!out->Process(data, length)) {
In such cases the data need to be piped through a buffered decoder
that can keep partial fragments around between updates.
Does MultiByteToWideChar or some other API have a way to detect
such boundaries?
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers