diff options
author | Abigail <abigail@abigail.be> | 2016-11-16 19:07:32 +0100 |
---|---|---|
committer | Abigail <abigail@abigail.be> | 2017-01-16 19:18:11 +0100 |
commit | ac6414262a1b4f261b44de47567879421546f605 (patch) | |
tree | 23bfd479e03d4b3802e3536e5bf39f75b7e5b679 /mg.c | |
parent | d1be68f6c29afe9530d0f04f52b6535313dc1ed2 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |