utils: exec commands through shell, unset locale
Fixes several problems on localized system, e.g. cpupower call
This commit is contained in:
parent
afefd7598e
commit
c6f7c28899
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue