Revision f6441c7c 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 214
  child = subprocess.Popen(cmd, shell=shell,
213 215
                           stderr=subprocess.PIPE,
214 216
                           stdout=subprocess.PIPE,
215 217
                           stdin=subprocess.PIPE,
216
                           close_fds=True)
218
                           close_fds=True, env=new_env)
217 219

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

Also available in: Unified diff