Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Warnings emitted by the compiler may contain \r\r\n on Windows #7106
Original bug ID: 7106
The text of certain warnings (e.g. from the @@@ocaml.deprecated attribute) may contain newline characters copied directly from the source file. If the source file has Windows line-endings, these will be preserved as \r\n.
The default formatters for displaying warnings in the compiler have text translation enabled which means that the \n characters are mapped to \r\n resulting in \r\r\n being written to the console.
While this makes no visible difference on the console, it is a problem if the output is being recorded (in the testsuite).
Steps to reproduce
On a Windows system, compile OCaml trunk
Be careful if using a Git clone made before 12 December 2015 that line endings are correct (commit d8b7a4) as Git doesn't automatically correct these. The best course is to create a fresh clone of trunk.