diff options
author | Tony Cook <tony@develop-help.com> | 2016-11-14 11:17:42 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2016-11-14 11:17:42 +1100 |
commit | 89e5a02142a942dab03bc79cac055f99a7212ed7 (patch) | |
tree | 95d0110353aaad0b6e72c1be320ce1660e9e65d9 /pp_sys.c | |
parent | c030fc8561c8844d6186a8c5c5f7f993052048c7 (diff) | |
download | perl-89e5a02142a942dab03bc79cac055f99a7212ed7.tar.gz |
make the sysread()/syswrite/() etc :utf8 handle warnings default
as they should be for deprecation warnings
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1705,9 +1705,9 @@ PP(pp_sysread) if ((fp_utf8 = PerlIO_isutf8(IoIFP(io))) && !IN_BYTES) { if (PL_op->op_type == OP_SYSREAD || PL_op->op_type == OP_RECV) { - Perl_ck_warner(aTHX_ packWARN(WARN_DEPRECATED), - "%s() is deprecated on :utf8 handles", - OP_DESC(PL_op)); + Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED), + "%s() is deprecated on :utf8 handles", + OP_DESC(PL_op)); } buffer = SvPVutf8_force(bufsv, blen); /* UTF-8 may not have been set if they are all low bytes */ @@ -1968,9 +1968,9 @@ PP(pp_syswrite) doing_utf8 = DO_UTF8(bufsv); if (PerlIO_isutf8(IoIFP(io))) { - Perl_ck_warner(aTHX_ packWARN(WARN_DEPRECATED), - "%s() is deprecated on :utf8 handles", - OP_DESC(PL_op)); + Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED), + "%s() is deprecated on :utf8 handles", + OP_DESC(PL_op)); if (!SvUTF8(bufsv)) { /* We don't modify the original scalar. */ tmpbuf = bytes_to_utf8((const U8*) buffer, &blen); |