summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)