From 5941cceb7cac4f9a6231dedb710ce49e4245158a Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Fri, 23 Apr 2021 11:10:22 -0400 Subject: [PATCH] Unset NODE_ICU_DATA before starting node in NodeHandler. (#1060) * Unset NODE_ICU_DATA before starting node in NodeHandler. * Update src/Runner.Worker/Handlers/NodeScriptActionHandler.cs Co-authored-by: Ross Brodbeck Co-authored-by: Ross Brodbeck --- src/Runner.Worker/Handlers/NodeScriptActionHandler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Runner.Worker/Handlers/NodeScriptActionHandler.cs b/src/Runner.Worker/Handlers/NodeScriptActionHandler.cs index da0d66f67..64b412489 100644 --- a/src/Runner.Worker/Handlers/NodeScriptActionHandler.cs +++ b/src/Runner.Worker/Handlers/NodeScriptActionHandler.cs @@ -97,6 +97,9 @@ namespace GitHub.Runner.Worker.Handlers Encoding outputEncoding = null; #endif + // Remove environment variable that may cause conflicts with the node within the runner. + Environment.Remove("NODE_ICU_DATA"); // https://github.com/actions/runner/issues/795 + using (var stdoutManager = new OutputManager(ExecutionContext, ActionCommandManager)) using (var stderrManager = new OutputManager(ExecutionContext, ActionCommandManager)) {