From fbbfc8403199987896c71fc84b68cff7468564ad Mon Sep 17 00:00:00 2001 From: Emma Tinten Date: Mon, 27 Jan 2020 13:11:45 +0100 Subject: [PATCH] Fixing #543 --- bumblebee/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bumblebee/util.py b/bumblebee/util.py index 5f4ae44..678f46b 100644 --- a/bumblebee/util.py +++ b/bumblebee/util.py @@ -3,6 +3,7 @@ import shlex import logging import subprocess +import os try: from exceptions import RuntimeError @@ -29,7 +30,9 @@ def aslist(val): def execute(cmd, wait=True): logging.info("executing command '{}'".format(cmd)) args = shlex.split(cmd) - proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + my_env = os.environ.copy() + my_env['LC_ALL'] = "C" + proc = subprocess.Popen(args, env=my_env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) rv = None if wait: