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 layer utf-16-le overwrites byte in filehandle backed by scalar #16453
Comments
From @nrdvanaThis is a bug report for perl from mike@nrdvana.net, I've run into a bug seemingly in every perl version (at least 5.12 Example: use strict; print "utf-16-le\n\n"; $input= "\xFF\xFE\x11\x22\x33\x44\x55\x66"; print "\nutf-16-be\n\n"; $input= "\xFE\xFF\x11\x22\x33\x44\x55\x66"; print "\nutf-32-le\n\n"; $input= "\xFF\xFE\x00\x00\x33\x44\x00\x00"; Output -------------------------- utf-16-le after open input=FF FE 11 22 33 44 55 66 utf-16-be after open input=FE FF 11 22 33 44 55 66 utf-32-le after open input=FF FE 00 00 33 44 00 00 Flags: Site configuration information for perl 5.26.1: Configured by builduser at Fri Jan 5 02:49:35 UTC 2018. Summary of my perl5 (revision 5 version 26 subversion 1) configuration: @INC for perl 5.26.1: (pardon for trimming the environment, but it had things I didn't want to |
From @tonycozOn Wed, 07 Mar 2018 23:16:28 -0800, mike@nrdvana.net wrote:
This is a duplicate of #132833, which was fixed in fed9fe5. I don't see this commit in the 5.26 votes file. Tony |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#132949 (status was 'open')
Searchable as RT132949$
The text was updated successfully, but these errors were encountered: