New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newline handling is broken on Windows #4849
Comments
From @nanis64-bit Windows 10.0.10586. 64-bit perl6 on MoarVM built using MS I noticed[1] 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>; 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 [1]: https://www.nu42.com/2015/12/perl6-newline-translation-botched.html moar::syslibs[6]=iphlpapi |
From @jnthnOn Fri Dec 11 09:31:44 2015, nanis@cpan.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. |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126881 (status was 'resolved')
Searchable as RT126881$
The text was updated successfully, but these errors were encountered: