Fix UnicodeDecodeError in Python version of powerline client

This commit is contained in:
ZyX 2014-08-02 19:46:04 +04:00
parent e37b13cc44
commit 3b060562e2
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ else:
args.append(b'--cwd=' + cwd)
env = (k + '=' + v for k, v in os.environ.items())
env = (k + b'=' + v for k, v in os.environ.items())
env = (x if isinstance(x, bytes) else x.encode(fenc, 'replace') for x in env)
args.extend((b'--env=' + x for x in env))