[cmake-developers] [CMake 0013180]: cmake output unnecessary carriage-return characters
Mantis Bug Tracker
mantis at public.kitware.com
Wed May 2 00:01:06 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13180
======================================================================
Reported By: Gili
Assigned To:
======================================================================
Project: CMake
Issue ID: 13180
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-05-02 00:01 EDT
Last Modified: 2012-05-02 00:01 EDT
======================================================================
Summary: cmake output unnecessary carriage-return characters
Description:
I am spawning "CMake --build" from a Java application and sniffing the output to
stdout and stderr. I noticed that every time CMake outputs a new line it
actually sends out:
13, 13, 10; or,
\r, \r, \n
I am using the standard Java BufferedReader.readLine() code which recognizes a
single newline as \r, \n, or \r\n. The above sequence gets interpreted as *two*
newlines instead of one.
Why is CMake outputting \r\r\n? Is it possible to make it output \r\n instead?
Steps to Reproduce:
Invoke "CMake --build" using Java's ProcessBuilder. Invoke
ProcessBuilder.getInputStream() to listen to the output.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-02 00:01 Gili New Issue
======================================================================
More information about the cmake-developers
mailing list