summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-06-01 18:16:56 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-06-07 12:15:31 +0100
commitfd503f5cfcafd1bd5c45f898cce12ece8d1d368a (patch)
treec3a5c9e73ab9221529f9d4b03830d5dd7eff846a /mg.c
parent5a2060e217d73fba807a79202aa876c8b6a8888a (diff)
downloadperl-fd503f5cfcafd1bd5c45f898cce12ece8d1d368a.tar.gz
Make setting ${^ENCODING} to a defined value fatal
This has been deprecated since 5.22 and a no-op since 5.26. Remove the now-obsolete t/uni/heavy.t test, which only tested that utf8_heavy.pl didn't fail to load when ${^ENCODING} was set.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mg.c b/mg.c
index c66aa0bb13..3a2210d20f 100644
--- a/mg.c
+++ b/mg.c
@@ -2727,13 +2727,8 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
# endif
#endif
}
- else {
- if (strEQ(mg->mg_ptr + 1, "NCODING") && SvOK(sv))
- if (PL_localizing != 2) {
- deprecate_fatal_in("5.28",
- "${^ENCODING} is no longer supported");
- }
- }
+ else if (strEQ(mg->mg_ptr + 1, "NCODING") && SvOK(sv))
+ Perl_croak(aTHX_ "${^ENCODING} is no longer supported");
break;
case '\006': /* ^F */
PL_maxsysfd = SvIV(sv);