Skip Menu |
Report information
Id: 131858
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [REGRESSION] default $.nl-in on IO::Handle does not correctly work in subclasses
Download (untitled) / with headers
text/plain 926b
Currently, this causes breakage in IO::String zoffix@VirtualBox~$ perl6 -e 'class Z is IO::Handle { method x { dd $.nl-in } }.new.x;' $["\n"] zoffix@VirtualBox~$ perl6 -v This is Rakudo version 2017.07-138-ga91ad2d built on MoarVM version 2017.07-318-g604da4d Above, it should give the two-element array, with "\r\n" as another element. AlexDaniel bisected my original code[^1] to point to https://gist.github.com/Whateverable/b26f4103f5da0809e11749b50fdbabb4 ¦c63c57e9a823^: «"hello,"» ¦c63c57e: «"hello,\r\nworld!\r\n"» I tried to golf it further, by taking all the relevant bits from IO::Handle into a custom class, but failed to reproduce the issue then. [1] https://gist.github.com/zoffixznet/0c2cbd7acaaf0d3b27d245ad2e2bc737
Subject: Re: [perl #131858] [REGRESSION] default $.nl-in on IO::Handle does not correctly work in subclasses
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
To: "Zoffix Znet (via RT)" <perl6-bugs-followup [...] perl.org>
Date: Tue, 8 Aug 2017 13:19:10 +0200
Download (untitled) / with headers
text/plain 1.2k
reverted c63c57e9a823303e74c06 for now Show quoted text
> On 8 Aug 2017, at 12:21, Zoffix Znet (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #131858] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=131858 > > > > Currently, this causes breakage in IO::String > > zoffix@VirtualBox~$ perl6 -e 'class Z is IO::Handle { method x { dd $.nl-in } }.new.x;' > $["\n"] > > zoffix@VirtualBox~$ perl6 -v > This is Rakudo version 2017.07-138-ga91ad2d built on MoarVM version 2017.07-318-g604da4d > > Above, it should give the two-element array, with "\r\n" as another element. > > AlexDaniel bisected my original code[^1] to point to https://gist.github.com/Whateverable/b26f4103f5da0809e11749b50fdbabb4 > ¦c63c57e9a823^: «"hello,"» ¦c63c57e: «"hello,\r\nworld!\r\n"» > > I tried to golf it further, by taking all the relevant bits from IO::Handle into a custom class, but failed to reproduce the issue then. > > [1] https://gist.github.com/zoffixznet/0c2cbd7acaaf0d3b27d245ad2e2bc737


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org