develooper Front page | perl.perl5.porters | Postings from January 2013

Re: [perl #112244] PerlIO_unread fails easily when :crlf is active

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
January 29, 2013 18:50
Subject:
Re: [perl #112244] PerlIO_unread fails easily when :crlf is active
Message ID:
CAHhgV8hWDAPMTivpfWUVdfDuYs9GN1jEWfAjXTdRCadSEdfVZA@mail.gmail.com
On Fri, Jul 6, 2012 at 11:18 AM, Leon Timmermans via RT
<perlbug-followup@perl.org> wrote:
> On Wed Apr 04 23:23:51 2012, LeonT wrote:
>> The problem is that :crlf doesn't fall back on :pending the way :perlio
>> does when the unread data doesn't fit into its own buffer. Instead it
>> just rejects them.
>>
>> Leon
>
> I think this should fix it, but I don't have a proper test just yet.
>
> Leon

Can someone with more time at hand write some tests for this?
IO::Handle's ungetc method looks like the most obvious way to do this.
I'd like to get this in before 5.18 but I'm not sure I'll have the
time this month.

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About