mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 784841 - Part 17: Handle unicode during packaging; r=glandium
This commit is contained in:
parent
42c8470531
commit
d6eb630896
@ -78,6 +78,13 @@ class ToolLauncher(object):
|
|||||||
env[p] = extra_linker_path
|
env[p] = extra_linker_path
|
||||||
for e in extra_env:
|
for e in extra_env:
|
||||||
env[e] = extra_env[e]
|
env[e] = extra_env[e]
|
||||||
|
|
||||||
|
# Work around a bug in Python 2.7.2 and lower where unicode types in
|
||||||
|
# environment variables aren't handled by subprocess.
|
||||||
|
for k, v in env.items():
|
||||||
|
if isinstance(v, unicode):
|
||||||
|
env[k] = v.encode('utf-8')
|
||||||
|
|
||||||
print >>errors.out, 'Executing', ' '.join(cmd)
|
print >>errors.out, 'Executing', ' '.join(cmd)
|
||||||
errors.out.flush()
|
errors.out.flush()
|
||||||
return subprocess.call(cmd, env=env)
|
return subprocess.call(cmd, env=env)
|
||||||
|
Loading…
Reference in New Issue
Block a user