Fix UnicodeDecodeError in Python version of powerline client
This commit is contained in:
parent
e37b13cc44
commit
3b060562e2
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue