From c6f7c2889916a2fd4db0183b690e8f7a15dc6f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Thu, 29 Nov 2012 16:32:44 +0100 Subject: [PATCH] utils: exec commands through shell, unset locale Fixes several problems on localized system, e.g. cpupower call --- tuned/utils/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/utils/commands.py b/tuned/utils/commands.py index 217c4a6..2be9caf 100644 --- a/tuned/utils/commands.py +++ b/tuned/utils/commands.py @@ -34,7 +34,7 @@ def execute(args): log.debug("Executing %s." % str(args)) out = "" try: - proc = Popen(args, stdout=PIPE, stderr=PIPE) + proc = Popen("LANG= " + " ".join(args), stdout = PIPE, stderr = PIPE, shell = True) out, err = proc.communicate() if proc.returncode: