summaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-06-13 12:42:43 -0400
committerScott Moser <smoser@brickies.net>2018-06-13 12:42:43 -0400
commit171378613ef4de3c1bb4170a10ec1748ac62f39f (patch)
tree5bbf7543e2ee27ef0dd851fc3e3eb7ef8d8db022 /LICENSE
parent27283c31f4bf85f40588cfa3b31389d70ec00243 (diff)
downloadvyos-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