You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7106 Reporter:@dra27 Status: closed (set by @damiendoligez on 2016-01-27T14:42:39Z) Resolution: fixed Priority: normal Severity: tweak Target version: 4.03.0+dev / +beta1 Fixed in version: 4.03.0+dev / +beta1 Category: platform support (windows, cross-compilation, etc)
Bug description
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
Then run make within testsuite/tests/warnings and the deprecated_module_use test will fail.
deprecated_module_use.result will contain extra \r characters at the end of lines 3, 4 and 5.
Additional information
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.
The text was updated successfully, but these errors were encountered:
Original bug ID: 7106
Reporter: @dra27
Status: closed (set by @damiendoligez on 2016-01-27T14:42:39Z)
Resolution: fixed
Priority: normal
Severity: tweak
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: platform support (windows, cross-compilation, etc)
Bug description
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
Then run make within testsuite/tests/warnings and the deprecated_module_use test will fail.
deprecated_module_use.result will contain extra \r characters at the end of lines 3, 4 and 5.
Additional information
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.
The text was updated successfully, but these errors were encountered: