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

[perl #74798] [PATCH] Data::Dumper: useqq implementation for xs

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
July 22, 2013 00:32
Subject:
[perl #74798] [PATCH] Data::Dumper: useqq implementation for xs
Message ID:
rt-3.6.HEAD-2552-1374453142-642.74798-15-0@perl.org
On Wed Jul 17 07:14:53 2013, demerphq wrote:
> I see nothing that deals with something like this: "\0000"
> 
> That is, a string containing an octal null followed by a zero.
> 
> Or similar cases. The pureperl implementation DOES deal with this:
> 
> $ perl -MData::Dumper -e'$Data::Dumper::Useqq=1; print Dumper("\0000")'
> $VAR1 = "\0000";
> 
> Now, I admit I havent *tried* the patch, but I did not see any code to
> look ahead at the *next* character and check if it is an octal digit,
> and if so force "three digit octal" mode.

Slaven's original patch didn't handle this case, I wrote a follow-up
change that tested for and fixed this behaviour.

That said, I need to look at the BBC failure to see what I've broken.

Tony


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=74798

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