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 13, 2016 05:50
Subject:
[perl #128524] Data::Dumper gets string lengths wrong when the utf8flag is set
Message ID:
rt-4.0.18-608-1468389011-784.128524-15-0@perl.org
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.

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