diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-07 14:51:04 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-07 14:51:04 +0000 |
commit | 735b7a62d039909fa334af8e05d4788f54c2c65a (patch) | |
tree | edbd2278cd43fa1471d1812ebf8b864fdd90a908 /pp_sys.c | |
parent | 9b3032b7d9e3c8e820c1ad71015731661bd6d109 (diff) | |
download | perl-735b7a62d039909fa334af8e05d4788f54c2c65a.tar.gz |
Duh. If the input is a stream of UTF-8 bytes, all that's
needed is SvUTF8_on(), sv_utf8_upgrade() is quite bogus.
Now, where was my coffee mug...
p4raw-id: //depot/perl@15779
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3817,8 +3817,8 @@ PP(pp_readdir) if (!(IoFLAGS(io) & IOf_UNTAINT)) SvTAINTED_on(sv); #endif - if (IoFLAGS(io) & IOf_DIR_UTF8) - sv_utf8_upgrade(sv); + if (IoFLAGS(io) & IOf_DIR_UTF8 && !IN_BYTES) + SvUTF8_on(sv); XPUSHs(sv_2mortal(sv)); } } |