I see a problem with testing
$ perl -le " binmode STDERR, q!:encoding(UTF-16le)!; print join q! !,
+PerlIO::get_layers( STDERR , details => 1)
unix 18895360 crlf 13193728 encoding UTF-16LE 13144576
$ perl -le " print join q! !, PerlIO::get_layers( STDERR , details =>
+ 1)
unix 18895360 crlf 13193728
$ perl -le " binmode STDERR; print join q! !, PerlIO::get_layers( ST
+DERR , details => 1)
unix 18895360 crlf 13177344
$ perl -le " binmode STDERR, q!:encoding(UTF-16le)!; print join q! !
+, PerlIO::get_layers( STDERR , details => 1)
unix 18895360 crlf 13193728 encoding UTF-16LE 13144576
$ perl -le " binmode STDERR, q!:raw:perlio:encoding(UTF-16le):crlf!;
+ print join q! !, PerlIO::get_layers( STDERR , details => 1)
unix 18895360 crlf 13193728 perlio 13111808 encoding UTF-16LE 13144
+576
$
So there is a bug somewhere
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|