-
Notifications
You must be signed in to change notification settings - Fork 1
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
Incorrect treatment of EOL causes test failures on Windows #6078
Comments
From sinan@unur.com$ perl t\harness5 t\spec\S17-procasync\basic.rakudo.moar --verbosity=5 # Failed test 'Tapping stdout supply after start of process does not lose data' For text streams, the standard way of dealing with differing EOL It looks like that is not being done in Proc::Async or whatever See also https://www.nu42.com/2015/12/perl6-newline-behavior-fixed.html -- Sinan |
From @zoffixznetLooks like several other tests in S17-procasync/basic.t would be failing as well if it weren't for the explicit kludges[^1][^2] added to replace "\r\n" to "\n". And `grep -nFR '\r\n' | grep subs` shows[^3] 32 potential places with a similar workaround. Pretty LTA for portable Perl 6 code to require any such thing. [1] https://github.com/perl6/roast/blob/045e538f0f28dedb7261b7c013eec16a5cf2ee7e/S17-procasync/basic.t#L19-L20 |
The RT System itself - Status changed from 'new' to 'open' |
From sinan@unur.comOn Wed, Feb 15, 2017 at 3:40 PM, Zoffix Znet via RT
*Sigh* ... I was in a hurry, so I did not look. This is disappointing. -- Sinan |
From sinan@unur.comFor reference, note I thought this was behind us. -- Sinan |
From @jnthnOn Wed, 15 Feb 2017 10:11:01 -0800, sinan@unur.com wrote:
Looks like it may have worked originally (back when the \r\n translation fixes were done late 2015), but then regressed more recently when a large set of changes were made to make decoding error handling more robust. I've fixed it now to do the translation again, and also added a :translate-nl option that can be used to control it (the default is to do the translation, but this will allow it to be disabled for anybody who wishes to do so). I've also added a test that runs a program with Proc::Async that spits a \r\n out whatever platform we're running on, so if we break this again we'll end up with a test failure even on Linux/OSX. Finally, the tests that did an explicit .subst have now been changed not to do so; I suspect they date back a few years, before we did any of the work on newline translation. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#130788 (status was 'resolved')
Searchable as RT130788$
The text was updated successfully, but these errors were encountered: