[1.8.x] Refs #24324 -- Fixed UnicodeDecodeError in model_regress test on non-ASCII path.

Backport of d316b43d0a from master
This commit is contained in:
Tim Graham 2015-02-15 18:59:54 -05:00
parent bcb3bfa5a2
commit b2f7daa4a6
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ print(article.headline)"""
str('PYTHONPATH'): os.pathsep.join(sys.path), str('PYTHONPATH'): os.pathsep.join(sys.path),
# Needed on Windows because http://bugs.python.org/issue8557 # Needed on Windows because http://bugs.python.org/issue8557
str('PATH'): os.environ['PATH'], str('PATH'): os.environ['PATH'],
str('LANG'): os.environ.get('LANG'),
} }
if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614 if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614
env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT'] env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT']