diff options
author | Leon Timmermans <fawaka@gmail.com> | 2021-01-19 19:53:08 +0100 |
---|---|---|
committer | Leon Timmermans <fawaka@gmail.com> | 2021-01-30 21:09:54 +0100 |
commit | 370c6ab2e9608a94096854c61d976ccf65bb2c13 (patch) | |
tree | 6853585f16dab912b970465f001ad52eff965e10 /ext | |
parent | 79a3675f89ea7d9d801c159a22ea1e1f8058e9c3 (diff) | |
download | perl-370c6ab2e9608a94096854c61d976ccf65bb2c13.tar.gz |
Omit setting of $PerlIO::encoding::fallback from xs
It's also set from encoding.pm, doing it double serves no purpose
Diffstat (limited to 'ext')
-rw-r--r-- | ext/PerlIO-encoding/encoding.xs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/ext/PerlIO-encoding/encoding.xs b/ext/PerlIO-encoding/encoding.xs index 720808d87d..15709d24dd 100644 --- a/ext/PerlIO-encoding/encoding.xs +++ b/ext/PerlIO-encoding/encoding.xs @@ -652,23 +652,11 @@ BOOT: * is invoked without prior "use Encode". -- dankogai */ PUSHSTACKi(PERLSI_MAGIC); - if (!get_cvs(OUR_DEFAULT_FB, 0)) { -#if 0 - /* This would just be an irritant now loading works */ - Perl_warner(aTHX_ packWARN(WARN_IO), ":encoding without 'use Encode'"); -#endif + if (!get_cvs(OUR_STOP_AT_PARTIAL, 0)) { /* The SV is magically freed by load_module */ load_module(PERL_LOADMOD_NOIMPORT, newSVpvs("Encode"), Nullsv, Nullsv); assert(sp == PL_stack_sp); } - PUSHMARK(sp); - PUTBACK; - if (call_pv(OUR_DEFAULT_FB, G_SCALAR) != 1) { - /* should never happen */ - Perl_die(aTHX_ "%s did not return a value",OUR_DEFAULT_FB); - } - SPAGAIN; - sv_setsv(chk, POPs); PUSHMARK(sp); PUTBACK; |