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

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

Zsbán Ambrus
December 2, 2011 09:18
Re: [perl #29720] $PerlIO::encoding::fallback = FB_DEFAULT leads toduplicated output
Message ID:
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

Ambrus Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About