Revision 23f41a3e lib/utils.py

b/lib/utils.py
209 209
  else:
210 210
    strcmd = cmd
211 211
    shell = True
212
  new_env = dict([(key, val) for (key, val) in os.environ.items()
213
                  if not (key == "LANG" or key.startswith("LC_"))])
212
  env = os.environ.copy()
213
  env["LC_ALL"] = "C"
214 214
  child = subprocess.Popen(cmd, shell=shell,
215 215
                           stderr=subprocess.PIPE,
216 216
                           stdout=subprocess.PIPE,
217 217
                           stdin=subprocess.PIPE,
218
                           close_fds=True, env=new_env)
218
                           close_fds=True, env=env)
219 219

  
220 220
  child.stdin.close()
221 221
  out = child.stdout.read()

Also available in: Unified diff