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