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

[perl #79824] hash value sharing breakage

Thread Previous
From:
Father Chrysostomos via RT
Date:
August 29, 2013 07:04
Subject:
[perl #79824] hash value sharing breakage
Message ID:
rt-3.6.HEAD-1873-1377759878-915.79824-15-0@perl.org
On Wed Aug 28 07:57:40 2013, zefram@fysh.org wrote:
> Father Chrysostomos via RT wrote:
> >According to our records, your request regarding
> >  "hash value sharing breakage"
> >has been resolved.
> 
> My original pure-Perl test case still exhibits the problem that I
> reported, in perl 5.18.1 and 5.19.3.
> 
> $ perl5.18.1 -MEncode -lwe '%a=("L\x{c3}\x{a9}on"=>"acme"); ($k)=(keys
> %a); Encode::_utf8_on($k); %h = ($k => "acme"); print $h{"L\x{e9}on"}'
> Use of uninitialized value in print at -e line 1.
> 
> Either this case should start working, perhaps by Encode::_utf8_on()
> performing some COW operation, or the documentation for
> Encode::_utf8_on()
> needs more caveats.  (Currently it has a big warning about UTF-8
> well-formedness, but this usage does not fall foul of that.)
> 
> Using utf8::decode() instead of Encode::_utf8_on() does not exhibit
> the
> problem in perl 5.14 and above.  (In perl 5.12 it did.)

Shouldn’t this be reported at Encode’s bug tracker?

-- 

Father Chrysostomos


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

Thread Previous


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