mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
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…
x
Reference in New Issue
Block a user