Skip to content

Commit

Permalink
Merge pull request andreasgal#297 from ahal/mach_unicode
Browse files Browse the repository at this point in the history
Bug 939024 - Fix unicode env problem in mach_b2g_bootstrap.py, r=jgriffi...
  • Loading branch information
Jonathan Griffin committed Nov 15, 2013
2 parents e0a2b68 + 947f81e commit d38fb81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/mach_b2g_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def bootstrap(b2g_home):
% os.path.join(b2g_home, 'load-config.sh')]
try:
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, cwd=b2g_home)
for line in output.splitlines():
for line in [l.decode('utf8') for l in output.splitlines()]:
key, value = line.split('=', 1)
os.environ[key] = value
os.environ[key.encode('utf8')] = value.encode('utf8')
except subprocess.CalledProcessError, e:
print(LOAD_CONFIG_FAILED % e.output.strip())
sys.exit(1)
Expand Down

0 comments on commit d38fb81

Please sign in to comment.