From 1797775be3ad662a3e5b369184c6b73900254b24 Mon Sep 17 00:00:00 2001 From: Brice Dutheil Date: Tue, 6 Dec 2022 11:36:39 +0100 Subject: [PATCH] Pass `LANG=C.UTF-8` to environment (#1476) * fix: pass LANG=C.UTF-8 to environment Fixes: #1308 * fix: pass LANG=C.UTF-8 to environment in container only Fixes: #1308 Signed-off-by: Brice Dutheil Signed-off-by: Brice Dutheil Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/runner/run_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index ce2532f..47662c9 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -225,6 +225,7 @@ func (rc *RunContext) startJobContainer() common.Executor { envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_OS", "Linux")) envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_ARCH", container.RunnerArch(ctx))) envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TEMP", "/tmp")) + envList = append(envList, fmt.Sprintf("%s=%s", "LANG", "C.UTF-8")) // Use same locale as GitHub Actions ext := container.LinuxContainerEnvironmentExtensions{} binds, mounts := rc.GetBindsAndMounts()