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
PerlIO::encoding infinite loop when trying to decode UTF-8 as ISO-2022-JP #10258
Comments
From jgreely@dotclue.orgCreated by jgreely@dotclue.orgWhen the ISO-2022-JP decoder is used by PerlIO::encoding, invalid #step1.pl - create a file containing Unicode 201d in UTF-8 #step2.pl - this script exits successfully #step3.pl - this script goes into an infinite decoding loop The behavior is identical on the Apple-supplied 5.10.0 and on Perl Info
|
From @iabynstill loops in blead |
@jkeenan - Status changed from 'new' to 'open' |
From @jkeenanReproduced with perl-5.24.1 on Linux:
-- |
From @Leontiso-2022 is a very problematic encoding because it's escape based, as explained in Encode::PerlIO. iso-2022-jp is currently allowed in PerlIO (unlike iso-2022-ke) because apparently well-formed iso-2022-jp can be handled easily enough, but your example shows that less well formed input can be quite problematic. In this particular case I suspect it's fixable (by handling EOF smarter), in many other cases it probably isn't. Leon |
From @khwilliamsonCan we detect we are in a loop? |
This still exists in 5.37.12 |
Migrated from rt.perl.org#73826 (status was 'open')
Searchable as RT73826$
The text was updated successfully, but these errors were encountered: