X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perlio.c;h=bbb12db702195fe6d7e7a7d9c81ec28b4e792054;hb=f4fee1ae61e02e37337727b540a7d3ca4e7b7d0e;hp=ef07055ef870864d6ae53f4c68dcbc87209ae448;hpb=6b54a40376f816c07bf5262ecec28e130b304cb8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perlio.c b/perlio.c index ef07055..bbb12db 100644 --- a/perlio.c +++ b/perlio.c @@ -2268,6 +2268,8 @@ PerlIOBase_dup(pTHX_ PerlIO *f, PerlIO *o, CLONE_PARAMS *param, int flags) if (self->Getarg) arg = (*self->Getarg)(aTHX_ o, param, flags); f = PerlIO_push(aTHX_ f, self, PerlIO_modestr(o,buf), arg); + if (PerlIOBase(o)->flags & PERLIO_F_UTF8) + PerlIOBase(f)->flags |= PERLIO_F_UTF8; if (arg) SvREFCNT_dec(arg); }