In perl.git, the branch smoke-me/leont/less-fragile-encoding has been created

<https://perl5.git.perl.org/perl.git/commitdiff/b9be3b70d3958278244ef9d914a318f3a205fa9c?hp=0000000000000000000000000000000000000000>

        at  b9be3b70d3958278244ef9d914a318f3a205fa9c (commit)

- Log -----------------------------------------------------------------
commit b9be3b70d3958278244ef9d914a318f3a205fa9c
Author: Leon Timmermans <faw...@gmail.com>
Date:   Thu Dec 28 19:23:03 2017 +0100

    Always use STOP_AT_PARTIAL in PerlIO::encoding
    
    PerlIO::encoding has a $fallback variable that allows one to set the
    behavior on a encoding/decoding, for example to make it throw an
    exception on error. What is not documented (actually the example in the
    documentation is even missing this) is that PerlIO::encoding needs the
    (equally undocumented) Encode::STOP_AT_PARTIAL flag to be set, otherwise
    a multi-byte character spanning buffer boundaries will be interpreted as
    two invalid byte sequences. I could have fixed the documentation, but
    instead I fixed the code to always pass this flag to Encode, simplifying
    the use and making the current documentation correct again.

-----------------------------------------------------------------------

-- 
Perl5 Master Repository

Reply via email to