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

[perl #128524] Data::Dumper gets string lengths wrong when the utf8flag is set

From:
Tony Cook via RT
Date:
July 20, 2016 04:23
Subject:
[perl #128524] Data::Dumper gets string lengths wrong when the utf8flag is set
Message ID:
rt-4.0.18-1021-1468988623-946.128524-15-0@perl.org
On Tue Jul 12 22:50:11 2016, tonyc wrote:
> On Sat Jul 02 15:00:44 2016, ether wrote:
> > seen in both Data::Dumper 2.154 and 2.160, perl 5.24.0 and perl
> > 5.25.0.
> >
> > Here is a self-contained reproduction case showing that string
> > lengths
> > are being counted wrong:
> 
> The problem was more that the key length was always being used rather
> then the
> quoted key length.
> 
> The attached fixes it for me.

I've adjusted the test to skip properly and I think made the test less fragile.

Applied as 3a3625f0ae05ec93b90af756e460a7803fafd8a2.

Tony

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



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