Skip Menu |
 

This queue is for tickets about the Encode CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: adolf.szabo [...] gmail.com
Cc:
AdminCc:

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



Subject: After decode_utf8($str) $str gets emptied
Date: Wed, 18 Jun 2014 12:40:06 +0200
To: bug-Encode [...] rt.cpan.org
From: Adolf Szabo <adolf.szabo [...] gmail.com>
Hi, I just notice this: main::(/tmp/a.pl:5): my $str='test'; DB<1> n main::(/tmp/a.pl:6): decode_utf8($str,Encode::FB_CROAK); DB<1> x $str 0 'test' DB<2> n main::(/tmp/a.pl:7): exit; DB<2> x $str 0 '' That is after call to ​decode_utf8($str) $str losts its value. Version I'm experiencing it: 'Encode.pm' => '2.42_01 from /usr/lib/perl/5.14/Encode.pm' 'Encode/Alias.pm' => '2.13 from /usr/lib/perl/5.14/Encode/Alias.pm' 'Encode/Config.pm' => '2.05 from /usr/lib/perl/5.14/Encode/Config.pm' 'Encode/Encoding.pm' => '2.05 from /usr/lib/perl/5.14/Encode/Encoding.pm' perl version: v5.14.2 uname: Linux mepc 3.2.0-59-generic #90-Ubuntu SMP Tue Jan 7 22:43:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Earlier version had it right: 'Encode.pm' => '2.35 from /usr/lib64/perl5/Encode.pm' perl version: v5.10.1 uname: Linux metaloader01.us-east-1c.vpc.securities.com 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux​ Please check and fix. Thanks, Adolf Sent from my iRon
Download (untitled) / with headers
text/plain 1.3k
This is not a bug. That way you can check what part of the string caused the error should error happens. Since there is no error in this case the input string gets emptied. Dan the Maintainer Thereof On Wed Jun 18 06:40:18 2014, adolf.szabo@gmail.com wrote: Show quoted text
> Hi, > > > I just notice this: > > main::(/tmp/a.pl:5): my $str='test'; > DB<1> n > main::(/tmp/a.pl:6): decode_utf8($str,Encode::FB_CROAK); > DB<1> x $str > 0 'test' > DB<2> n > main::(/tmp/a.pl:7): exit; > DB<2> x $str > 0 '' > > That is after call to ​decode_utf8($str) $str losts its value. Version I'm > experiencing it: > > 'Encode.pm' => '2.42_01 from /usr/lib/perl/5.14/Encode.pm' > 'Encode/Alias.pm' => '2.13 from /usr/lib/perl/5.14/Encode/Alias.pm' > 'Encode/Config.pm' => '2.05 from /usr/lib/perl/5.14/Encode/Config.pm' > 'Encode/Encoding.pm' => '2.05 from /usr/lib/perl/5.14/Encode/Encoding.pm' > > perl version: v5.14.2 > uname: Linux mepc 3.2.0-59-generic #90-Ubuntu SMP Tue Jan 7 22:43:51 UTC > 2014 x86_64 x86_64 x86_64 GNU/Linux > > Earlier version had it right: > > 'Encode.pm' => '2.35 from /usr/lib64/perl5/Encode.pm' > perl version: v5.10.1 > uname: Linux metaloader01.us-east-1c.vpc.securities.com > 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 > x86_64 GNU/Linux​ > > > > Please check and fix. > Thanks, Adolf > Sent from my iRon


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.