Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Newline handling is broken on Windows #4849
64-bit Windows 10.0.10586. 64-bit perl6 on MoarVM built using MS
I noticed that several tests fail if the test script has Unix line
This is problematic behavior. Tests should pass or fail independently
E.g. see test 20 in t\spec\S02-literals\heredocs.t:
my $e = q:to<END>;
This fails with:
# Failed test 'Heredoc one empty line'
That is, when the script source uses Unix line endings, $e contains
What happens in this and other tests that fail depending on whether
For more exploration, see
On Fri Dec 11 09:31:44 2015, firstname.lastname@example.org wrote:
Also was fine if you have autoclrf set in Git, fwiw.
The logical \n in strings (mirroring logical \n in regexes) didn't work out so well in reality as it did in theory. Now:
* We do translation of \r\n graphemes to \n on all input read as text except sockets, independent of platform
This hopefully addresses the various issues. Various tests have been updated accordingly.