FAQ

[ken_hirsch - Tue Oct 25 03:19:49 2005]:


This is a bug report for perl from kenhirsch@ftml.net,
generated with the help of perlbug 1.34 running under perl v5.8.0.


-----------------------------------------------------------------
[Please enter your report here]


use encoding 'iso-8859-1';
binmode STDOUT, ':encoding(iso-8859-1)' or die "binmode:$!";
print "\xe1", "\n";
__END__
output is:
"\x{1280}" does not map to iso-8859-1.
panic: sv_setpvn called with negative strlen.

The same result is obtained with this program:
open OUTFILE, ">", "testout.txt" or die "open: $!";
binmode OUTFILE, ':encoding(iso-8859-1)' or die "binmode 1:$!";
binmode OUTFILE, ':encoding(iso-8859-1)' or die "binmode 2:$!";
print OUTFILE "\xe1", "\n";
I was able to replicate this problem in Perl-5.8.6, but I could get the
panic in bleadperl. I'm not sure what change fixed this problem, though.
./perl -Ilib -Mencoding=iso-8859-1 -wle'binmode STDOUT,
":encoding(iso-8859-1)" or die "binmode:$!"; print "\xe1", "\n";'
"\x{128a}" does not map to iso-8859-1 at -e line 1.
\x{128a}

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupperl5-porters @
categoriesperl
postedNov 9, '05 at 1:04p
activeNov 9, '05 at 1:04p
posts1
users1
websiteperl.org

1 user in discussion

Steve Peters via RT: 1 post

People

Translate

site design / logo © 2022 Grokbase