This is the program I'm running with Perl 6 right now (Rakudo Star 2017.10 on Windows 7 x64, chcp 65001 code page)
use v6;
say chr(300) x 3, chr(301), 'UVW';
I expect to have exactly one line of output:
ĬĬĬĭUVW
but I get a cryptic second line of output ('VW'):
ĬĬĬĭUVW
VW
(By the way, when I redirect the output to a file, the problem disappears)
So my question is this: how can I get Perl 6 to output exactly one line? - (unfortunately, redirecting output to a file is not an option for me)
Additional info: As you can see from the old Stackoverflow question, https://stackoverflow.com/a/1671550/ ...
I had the same problem with Perl 5. The solution in Perl 5 was to enter the command
binmode(STDOUT, ':unix:encoding(utf8):crlf');
So now I have a question:
Perl 6 Perl 5 command binmode (STDOUT, ': unix: encoding (utf8): crlf')?
.