develooper Front page | perl.perl5.porters | Postings from December 2011

Re: [perl #29720] $PerlIO::encoding::fallback = FB_DEFAULT leads toduplicated output

From:
Zsbán Ambrus
Date:
December 2, 2011 09:18
Subject:
Re: [perl #29720] $PerlIO::encoding::fallback = FB_DEFAULT leads toduplicated output
Message ID:
CAHku1CEXdq2DLHr4kA9mmTtgcNfvqXxWoYio=EoMxFkWPXOnkg@mail.gmail.com
Besides printing duplicate output, a filehandle with an encoding layer
with fallback set also usually raises an exception "Close with partial
character" when you try to close it.  This error message is not
documented in either perldiag or PerlIO::encoding, and, in any case,
there shouldn't be an error.

I attach a test script that tests whether this bug is still present:
it tests for both correct output and no exception when you close the
file.

Ambrus



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About