Skip to content

Commit

Permalink
Bug 939024 - Fix unicode env problem in mach_b2g_bootstrap.py, r=jgri…
Browse files Browse the repository at this point in the history
…ffin
  • Loading branch information
ahal-test committed Nov 15, 2013
1 parent e0a2b68 commit 947f81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/mach_b2g_bootstrap.py
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 947f81e

Please sign in to comment.