Skip to content

Commit

Permalink
Force English locales for all spawned programs
Browse files Browse the repository at this point in the history
Fixes #697

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Apr 7, 2015
1 parent 48d5ef2 commit d9e24ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions weblate/trans/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,12 @@ def get_clean_env(extra=None):
"""
Returns cleaned up environment for subprocess execution.
"""
environ = {}
environ = {
'LANG': 'en_US.UTF-8'
}
if extra is not None:
environ.update(extra)
variables = ('HOME', 'PATH', 'LANG', 'LD_LIBRARY_PATH')
variables = ('HOME', 'PATH', 'LD_LIBRARY_PATH')
for var in variables:
if var in os.environ:
environ[var] = os.environ[var]
Expand Down

0 comments on commit d9e24ab

Please sign in to comment.