From 24e177af44b10fb0e3b45e7091e9dbecaadb3eed Mon Sep 17 00:00:00 2001 From: Julius Ikkala Date: Fri, 11 Apr 2025 00:36:34 +0300 Subject: Fix downstream compiler locale (#6734) Co-authored-by: Ellie Hermaszewska --- source/core/unix/slang-unix-process.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/core/unix/slang-unix-process.cpp b/source/core/unix/slang-unix-process.cpp index b3abc873c..68c38236a 100644 --- a/source/core/unix/slang-unix-process.cpp +++ b/source/core/unix/slang-unix-process.cpp @@ -503,6 +503,10 @@ static int pipeCLOEXEC(int pipefd[2]) dup2(stderrPipe[1], STDERR_FILENO); ::close(stderrPipe[1]); + // Reset locale to ensure the output can be parsed regardless of user's + // locale. + setenv("LC_ALL", "C", 1); + if (exe.m_type == ExecutableLocation::Type::Path) { // Use the specified path (ie don't search) -- cgit v1.2.3