Re: [perl #36659] UTF-16 endianess switch after line break

2005-07-27 Thread Jeremias Reith
C:\perl -we binmode(STDOUT, ':crlf'); binmode(STDOUT, ':encoding(UTF-16)'); map { print $_ . \\n\ } @ARGV; foo bar baz 1.txt

Re: [perl #36659] UTF-16 endianess switch after line break

2005-07-26 Thread Dominic Dunlop
On 2005–07–26, at 11:31, Jeremias Reith (via RT) wrote: There is an endianess switch after each newline while outputting UTF-16 on Win32. Example script: #!/usr/bin/perl binmode(STDOUT, ':encoding(UTF-16)'); map { print $_ . \n } @ARGV; This produces the following (called with foo bar