diff options
Diffstat (limited to 'ext/PerlIO-encoding/encoding.xs')
-rw-r--r-- | ext/PerlIO-encoding/encoding.xs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/PerlIO-encoding/encoding.xs b/ext/PerlIO-encoding/encoding.xs index cc329d352c..d41227cba2 100644 --- a/ext/PerlIO-encoding/encoding.xs +++ b/ext/PerlIO-encoding/encoding.xs @@ -385,7 +385,10 @@ PerlIOEncode_fill(pTHX_ PerlIO * f) if (avail == 0) PerlIOBase(f)->flags |= PERLIO_F_EOF; else + { PerlIOBase(f)->flags |= PERLIO_F_ERROR; + Perl_PerlIO_save_errno(aTHX_ f); + } } FREETMPS; LEAVE; |