summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorJulius Ikkala <julius.ikkala@gmail.com>2025-04-11 00:36:34 +0300
committerGitHub <noreply@github.com>2025-04-10 21:36:34 +0000
commit24e177af44b10fb0e3b45e7091e9dbecaadb3eed (patch)
treedeb12616aa7380a1e726c436ce70fb86ee31a111 /source/core
parent17d1a2c8c3ff6b357b99faaefff7caa7200be2f8 (diff)
Fix downstream compiler locale (#6734)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'source/core')
-rw-r--r--source/core/unix/slang-unix-process.cpp4
1 files changed, 4 insertions, 0 deletions
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)