mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784841 - Part 17: Handle unicode during packaging; r=glandium
This commit is contained in:
parent
39ec7e4cdf
commit
b57b13255c
@ -78,6 +78,13 @@ class ToolLauncher(object):
|
||||
env[p] = extra_linker_path
|
||||
for e in extra_env:
|
||||
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)
|
||||
errors.out.flush()
|
||||
return subprocess.call(cmd, env=env)
|
||||
|
Loading…
Reference in New Issue
Block a user