This is the program I am currently running with Perl 6 (Rakudo Star 2017.10 under Windows 7 x64, codepage chcp 65001)
use v6;
say chr(300) x 3, chr(301), 'UVW';
I expect to have exactly one line of output:
ĬĬĬĭUVW
but I get a mysterious second line of output ('VW'):
ĬĬĬĭUVW
VW
(By the way, when I redirect the output into a file, the problem goes away)
So my question is as follows, how can I make Perl 6 to output exactly one line ? -- (unfortunately, redirecting the output into a file is not an option for me)
Additional information: As can be seen in the old Stackoverflow question http://stackoverflow.com/questions/25585248 I had exactly the same problem with Perl 5. The solution in Perl 5 was to inject a command
binmode(STDOUT, ':unix:encoding(utf8):crlf');
So the question I have now is as follows:
What is the Perl 6 equivalent of the Perl 5 command binmode(STDOUT, ':unix:encoding(utf8):crlf') ?
Thanks in advance for your help.