diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2017-06-01 18:16:56 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2017-06-07 12:15:31 +0100 |
commit | fd503f5cfcafd1bd5c45f898cce12ece8d1d368a (patch) | |
tree | c3a5c9e73ab9221529f9d4b03830d5dd7eff846a /mg.c | |
parent | 5a2060e217d73fba807a79202aa876c8b6a8888a (diff) | |
download | perl-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.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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); |