New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple encodings causes "panic: sv_setpvn called with negative strlen" #8166
Comments
From kenhirsch@ftml.netCreated by kenhirsch@ftml.netuse encoding 'iso-8859-1'; The same result is obtained with this program: Perl Info
|
From @smpeters
I was able to replicate this problem in Perl-5.8.6, but I could get the
|
The RT System itself - Status changed from 'new' to 'open' |
@smpeters - Status changed from 'open' to 'resolved' |
@sciurius - Status changed from 'resolved' to 'open' |
From @sciuriusThe original test program: use encoding 'iso-8859-1'; prints _nothing_ with 5.8.8. Changing the last line to print "x\xe1", "\n"; Yields: "\x{1280}" does not map to iso-8859-1 at x2.pl line 3. (note: no final newline) |
From @doyIn 5.16.0, this program: use encoding 'iso-8859-1'; prints: "\x{fffd}" does not map to iso-8859-1 at test7.pl line 3. and changing the last line to: print "x\xe1", "\n"; yields: "\x{fffd}" does not map to iso-8859-1 at test7.pl line 3. Is this the expected behavior? I'm not entirely sure why it would be -doy |
From @nwc10On Fri, Jul 06, 2012 at 03:01:55PM -0700, Jesse Luehrs via RT wrote:
It's not the behaviour I would expect. Particularly given that the value $ ./perl -Ilib -MDevel::Peek -e 'use encoding "iso-8859-1"; Dump "\xe1"' Nicholas Clark |
From @ikegamiOn Fri, Jul 6, 2012 at 6:01 PM, Jesse Luehrs via RT <
Double-encoding U+00E1 with iso-8859-1 should resolve in E1, as shown below: $ perl -MEncode=encode -E'print encode("iso-8859-1", encode("iso-8859-1", |
From @ap* Jesse Luehrs via RT <perlbug-followup@perl.org> [2012-07-07 00:05]:
You used encoding.pm. You lose. Lose that line and watch it work.
It is trying to output a replacement character, finding it cannot, and * Nicholas Clark <nick@ccl4.org> [2012-07-10 13:20]:
He is using encoding.pm so that’s not saying much. Regards, |
From @LeontOn Sat, Jul 7, 2012 at 1:01 AM, Jesse Luehrs via RT
: perl -Mencoding=iso-8859-1 -E 'binmode STDOUT, Having two encoding layers on top of each other isn't going to work, Leon |
From @ikegamiOn Thu, Jul 12, 2012 at 4:55 AM, Leon Timmermans <fawaka@gmail.com> wrote:
It's probably not something you *should* do, but why isn't it going to $ perl -MEncode=encode -E'print encode("iso-8859-1", encode("iso-8859-1", |
Migrated from rt.perl.org#37526 (status was 'open')
Searchable as RT37526$
The text was updated successfully, but these errors were encountered: