Reputation: 10500
I'd like to output a Unicode character in cmd
, but the obvious approach fails:
C:\Windows\System32>perl6 -e "'Я'.say"
?
Interestingly, this works:
C:\Windows\System32>perl6 -e "Buf.new(0xD0, 0xAF).decode('UTF-8').say"
Я
What seems to be the problem here?
Edit: I'm using the most recent Rakudo Star release from here.
C:\Windows\System32>perl6 -v
This is Rakudo version 2016.01.1 built on MoarVM version 2016.01
implementing Perl 6.c.
Upvotes: 2
Views: 227
Reputation:
The problem is a lack of testing on Windows. Please file a bug report against Rakudo. If you got a recent Rakudo Star version that is.
Update: Bug was filed and the issue has since been fixed.
C:\Windows\System32>perl6 -v
This is Rakudo version 2017.04.3 built on MoarVM version 2017.04-53-g66c6dda
implementing Perl 6.c.
C:\Windows\System32>perl6 -e "'Я'.say"
Я
Sinan Ünür has written an interesting blog post on the problem.
Upvotes: 2