Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants