[perl #132874] writing to utf16 handle gives write_fhb error

[email protected] ("brian d foy")
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
# New Ticket Created by  "brian d foy" 
# Please include the string:  [perl #132874]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132874 >


This little program:

    my $fh = open 'test.txt', :w, :enc('utf16');
    put "filehandle is using {$fh.encoding}";
    $fh.put: 'Some text';

Gives this error:

    filehandle is using utf16
    write_fhb requires a native array of uint8 or int8

----
This is Rakudo Star version 2018.01 built on MoarVM version 2018.01
implementing Perl 6.c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.