diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-02-22 16:18:02 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2018-02-23 12:17:57 -0500 |
commit | 46cb6716c27d4496ce3d2bea7684803f522f277d (patch) | |
tree | e9daac696ae390683dd9f3fe57d1a4ac300ab8e6 /cloudinit/reporting | |
parent | 65f0b263a1af170802215823d6e354f8bdfa5f39 (diff) | |
download | vyos-cloud-init-46cb6716c27d4496ce3d2bea7684803f522f277d.tar.gz vyos-cloud-init-46cb6716c27d4496ce3d2bea7684803f522f277d.zip |
subp: Fix subp usage with non-ascii characters when no system locale.
If python starts up without a locale set, then its default encoding
ends up set as ascii. That is not easily changed with the likes of
setlocale. In order to avoid UnicodeDecodeErrors cloud-init will
encode to bytes a python3 string or python2 basestring so that the
values passed to Popen are already bytes.
LP: #1751051
Diffstat (limited to 'cloudinit/reporting')
0 files changed, 0 insertions, 0 deletions