summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-03-18 21:17:03 -0600
committerKarl Williamson <khw@cpan.org>2019-03-19 10:20:28 -0600
commit9edbb8b2d2f1fc6dd6ab01894735f5fd43a32966 (patch)
treec727273f4fad2b4f7ae49e18fab81a489a11543f /pp_sys.c
parent44b0aff01ba282b14dc62a1137996136282bc17a (diff)
downloadperl-9edbb8b2d2f1fc6dd6ab01894735f5fd43a32966.tar.gz
pp.c, pp_sys.c: Use DO_UTF8 instead of its expansion
We have a macro to hide the details of this; use it
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index e28e8906f1..304e1b50f8 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1736,7 +1736,7 @@ PP(pp_sysread)
}
else {
buffer = SvPV_force(bufsv, blen);
- buffer_utf8 = !IN_BYTES && SvUTF8(bufsv);
+ buffer_utf8 = DO_UTF8(bufsv);
}
if (DO_UTF8(bufsv)) {
blen = sv_len_utf8_nomg(bufsv);