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
Leon Timmermans
January 29, 2013 18:50
Re: [perl #112244] PerlIO_unread fails easily when :crlf is active
Message ID:
On Fri, Jul 6, 2012 at 11:18 AM, Leon Timmermans via RT
<> 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About