summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2016-11-16 19:07:32 +0100
committerAbigail <abigail@abigail.be>2017-01-16 19:18:11 +0100
commitac6414262a1b4f261b44de47567879421546f605 (patch)
tree23bfd479e03d4b3802e3536e5bf39f75b7e5b679 /mg.c
parentd1be68f6c29afe9530d0f04f52b6535313dc1ed2 (diff)
downloadperl-ac6414262a1b4f261b44de47567879421546f605.tar.gz
Setting ${^ENCODE} will be fatal by 5.28.
Hence, we adapted the warning, to mention the version in which it will become a fatal error.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index e945658b84..1bcfc4f977 100644
--- a/mg.c
+++ b/mg.c
@@ -2709,8 +2709,8 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
else {
if (strEQ(mg->mg_ptr + 1, "NCODING") && SvOK(sv))
if (PL_localizing != 2) {
- Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED),
- "${^ENCODING} is no longer supported");
+ deprecate_fatal_in("5.28",
+ "${^ENCODING} is no longer supported");
}
}
break;