|Subject:||piconv with ascii-incompatible output breaks on Win32|
Using `piconv -f utf-8 -t UTF-16LE in > out` does not work on Win32 as Win32 stdio will translate line endings without considering the encoding of the stream, you get CR LF rather than e.g. LF 00 or CR 00 LF 00 which results in broken output. This can generally be solved by using binmode(STDOUT) except that this would create LF only line endings rather than proper CR LF pairs, e.g. perl -MEncode -e "local$/;$_=<>;binmode(STDOUT);Encode::from_to($_,'utf-8','UTF-16LE');print" in > out would work except for the shortcoming mentioned above.