-
Notifications
You must be signed in to change notification settings - Fork 11
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
Output is incorrect when I/O layer is specified by binmode() #25
Comments
Similar instance, adapted from @xenu comment in Perl/perl5#21841:
|
Now, suppose that, in the
Let's run this.
So |
This turned out to be due to not explicitly importing PerlIO, since that has to be done for |
Closed in #28. |
Describe the bug
Output of
parse_string_document
method is incorrect when I/O layer is specified inbinmode
.To Reproduce
Running this script will display the result of converting a string written in Pod format.
Grinning face emoji is the expected behavior to be displayed, but it is garbled.
If the
binmode
function call is commented out, the display will be as expected.Expected behavior
binmode
is not commented out and the grinning face emoji is correctly displayed.Additional context
It behaved as expected up to v4.14.
It is reproduced in the latest sources since v5.00.
The text was updated successfully, but these errors were encountered: