diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-06-13 12:42:43 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2018-06-13 12:42:43 -0400 |
commit | 171378613ef4de3c1bb4170a10ec1748ac62f39f (patch) | |
tree | 5bbf7543e2ee27ef0dd851fc3e3eb7ef8d8db022 /LICENSE | |
parent | 27283c31f4bf85f40588cfa3b31389d70ec00243 (diff) | |
download | vyos-cloud-init-171378613ef4de3c1bb4170a10ec1748ac62f39f.tar.gz vyos-cloud-init-171378613ef4de3c1bb4170a10ec1748ac62f39f.zip |
Fix get_proc_env for pids that have non-utf8 content in environment.
There is no requirement that the environment of a process contains
only utf-8 data. This modifies get_proc_env to support it reading
data as binary and decoding if provided with an encoding.
The default case is now that we now do:
contents.decode('utf-8', 'replace')
rather than
contents.decode('utf-8', 'strict')
LP: #1775371
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions