715684
From 3772892b334a631b7bbf9a8ffbcb19e327d96e29 Mon Sep 17 00:00:00 2001
715684
From: Ricardo Signes <rjbs@semiotic.systems>
715684
Date: Sat, 17 Jul 2021 14:46:10 -0400
715684
Subject: [PATCH] mitigate @INC pollution when loading ConfigLocal
715684
715684
---
715684
 Encode.pm | 4 ++--
715684
 1 file changed, 2 insertions(+), 2 deletions(-)
715684
715684
diff --git a/Encode.pm b/Encode.pm
715684
index a56a999..9691382 100644
715684
--- a/Encode.pm
715684
+++ b/Encode.pm
715684
@@ -65,8 +65,8 @@ require Encode::Config;
715684
 eval {
715684
     local $SIG{__DIE__};
715684
     local $SIG{__WARN__};
715684
-    local @INC = @INC || ();
715684
-    pop @INC if $INC[-1] eq '.';
715684
+    local @INC = @INC;
715684
+    pop @INC if @INC && $INC[-1] eq '.';
715684
     require Encode::ConfigLocal;
715684
 };
715684
 
715684
-- 
715684
2.30.1 (Apple Git-130)
715684