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
Encode from_to() does not return on invalid conversion #9189
Comments
From perlbugs2008@j3e.deCreated by perlbugs2008@j3e.deif from_to() is called with the check parameter Encode::FB_QUIET it should return on errors. With Perl 5.10 this does no longer work in this szenario: #!/usr/bin/perl In this case \366 is being converted to \357 \277 \275 by Perl 5.10. With Perl <= 5.8.8 from_to returned undef which iѕ more reasonable. Perl Info
|
From @nwc10Dave notes: a 5.10.0 regression apparently |
@nwc10 - Status changed from 'new' to 'open' |
From p5p@spam.wizbit.be(CC'ing the maintainer of Encode: Dan Kogai) Dan, Could you please take a look at this bug report and help us determine On Wed Jan 16 04:54:34 2008, perlbugs2008@j3e.de wrote:
perl-5.8.8 contains Encode v2.12 perl-5.8.9 contains Encode v2.26 perl-5.9.2 contains Encode v2.09 perl-5.9.3 contains Encode v2.14 A binary search: use Encode 'from_to'; ----Output of .../peZnlj8/perl-5.9.2@26861/bin/perl---- ----EOF ($?='0')---- ----EOF ($?='0')---- http://public.activestate.com/cgi-bin/perlbrowse/p/26863 Upgrade to Encode 2.14 perl-5.9.2@26861 contains Encode v2.12 Running it with the latest version of Encode (v2.33) on perl-5.8.8: So this looks like a change in behaviour (maybe intended, maybe not) in Best regards, Bram |
From @tonycozThis appears to be deliberate, in particular, see: http://rt.cpan.org/Public/Bug/Display.html?id=27277 and in Encode.pm: Also note that from_to($octets, $from, $to, $check); is equivalent to $octets = encode($to, decode($from, $octets), $check); Yes, it does not respect the $check during decoding. It is |
From @tonycozSo the list sees it... On Fri May 29 05:41:29 2009, tonyc wrote:
|
From p5p@spam.wizbit.beOn Wed Jan 16 04:54:34 2008, perlbugs2008@j3e.de wrote:
This is documented as a feature in Encode. Marking this bug as rejected. Best regards, Bram |
p5p@spam.wizbit.be - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#49830 (status was 'rejected')
Searchable as RT49830$
The text was updated successfully, but these errors were encountered: