Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 59981
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: sprout [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: find_encoding("UTF-8")->encode crashes on refs
Date: Sun, 1 Aug 2010 12:39:35 -0700
To: bug-Encode [...] rt.cpan.org
From: Father Chrysostomos <sprout [...] cpan.org>
$ perl5.13.3 -S pmvers Encode 2.39 $ perl5.13.3 -MEncode -le'print find_encoding("UTF-8")->encode([])' Segmentation fault $ perl5.13.3 -MEncode -le'print find_encoding("UTF-8")->encode(bless[])' Segmentation fault $ perl5.13.3 -MEncode -le'use overload q\""\=>sub{"oenuh"}; print find_encoding("UTF-8")->encode(bless[])' Segmentation fault
On Sun Aug 01 15:39:43 2010, sprout@cpan.org wrote: Show quoted text
> $ perl5.13.3 -S pmvers Encode > 2.39 > $ perl5.13.3 -MEncode -le'print find_encoding("UTF-8")->encode([])' > Segmentation fault > $ perl5.13.3 -MEncode -le'print find_encoding("UTF-8")-
> >encode(bless[])'
> Segmentation fault > $ perl5.13.3 -MEncode -le'use overload q\""\=>sub{"oenuh"}; print > find_encoding("UTF-8")->encode(bless[])' > Segmentation fault
Fixed in 2.40. Note the value is different from (en|de)code_utf8 in this case. % perl -Mblib -MEncode -le'print find_encoding("UTF-8")->encode([])' % Thank you for your report. Dan the Maintainer Thereof