diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-16 20:36:23 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-16 20:36:23 +0000 |
commit | 88632417a970dff8f92718b0800b1aa1400cb4ae (patch) | |
tree | ea66b4eab7dfc6a1a4ebdd064c01f1f0095bcfe1 /doio.c | |
parent | caf774a6b47c93401a4581fab332b04b560c89d5 (diff) | |
download | perl-88632417a970dff8f92718b0800b1aa1400cb4ae.tar.gz |
Fix 'use encoding' I/O for code points 0x80..0xFF;
code changes from Inaba Hiroto; test tweaks by jhi.
p4raw-id: //depot/perl@18496
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1268,7 +1268,8 @@ Perl_do_print(pTHX_ register SV *sv, PerlIO *fp) default: if (PerlIO_isutf8(fp)) { if (!SvUTF8(sv)) - sv_utf8_upgrade(sv = sv_mortalcopy(sv)); + sv_utf8_upgrade_flags(sv = sv_mortalcopy(sv), + SV_GMAGIC|SV_UTF8_NO_ENCODING); } else if (DO_UTF8(sv)) { if (!sv_utf8_downgrade((sv = sv_mortalcopy(sv)), TRUE) |