Skip to content
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

open qw(:std :utf8) not printed correctly at run time #57

Open
atoomic opened this issue Jul 18, 2017 · 1 comment
Open

open qw(:std :utf8) not printed correctly at run time #57

atoomic opened this issue Jul 18, 2017 · 1 comment

Comments

@atoomic
Copy link
Collaborator

atoomic commented Jul 18, 2017

This is a simplified version of xtestc/2900.t

use open qw(:std :utf8);
BEGIN{ `echo -n ö > /tmp/xx.bak`; }
open X, "/tmp/xx.bak";
$_ = <X>;
print qq[ok $_\n] if ord($_) == 246;

This prints ok � instead of the expected ok ö the character is correctly set to 246 when reading it, but the print is incorrect.

We are probably missing a flag somewhere

HEAD=@2e9ae51d1e

atoomic added a commit that referenced this issue Jul 18, 2017
atoomic added a commit that referenced this issue Jul 18, 2017
GH #57

this is fixing two subtests but the test
is still broken for other reasons: utf8 layer.
@toddr
Copy link
Member

toddr commented Jul 20, 2017

This can be fixed in bc_parse_perl but to date we have no use case where we want a re-started binary to have an altered STDOUT from the get go.

atoomic added a commit that referenced this issue Sep 12, 2018
Seems like GH #57 is now fixed

GH #57 - open qw(:std :utf8) STDOUT issue
atoomic added a commit that referenced this issue Sep 13, 2018
Seems like GH #57 is now fixed

GH #57 - open qw(:std :utf8) STDOUT issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants