diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-10-12 16:40:47 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-10-12 16:40:47 +0000 |
commit | b04f6ddbaa1d33e3f7b6e66f02cf1617272aa4de (patch) | |
tree | 274d7ec8c1481d2915a6327fce9467720c31591c /mg.c | |
parent | 4684d731f02c066eee80e5bbcc087ef68f9a0177 (diff) | |
download | perl-b04f6ddbaa1d33e3f7b6e66f02cf1617272aa4de.tar.gz |
(submitted on behalf of Jarkko)
Fix the lib/encode.t subtest 6 failure as reported by Andreas
Koenig, gmagical substr() wasn't propagating UTF8ness. The bug
was unearthed by change 7182, as was a bug in HTML::Entities.
p4raw-id: //depot/perl@7202
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1425,6 +1425,8 @@ Perl_magic_getsubstr(pTHX_ SV *sv, MAGIC *mg) if (rem + offs > len) rem = len - offs; sv_setpvn(sv, tmps + offs, (STRLEN)rem); + if (DO_UTF8(lsv)) + SvUTF8_on(sv); return 0; } |