Merge ~smoser/cloud-init:bug/1751051-subp-encode-with-utf8 into cloud-init:master
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | 46cb6716c27d4496ce3d2bea7684803f522f277d |
Proposed branch: | ~smoser/cloud-init:bug/1751051-subp-encode-with-utf8 |
Merge into: | cloud-init:master |
Diff against target: |
72 lines (+40/-1) 2 files modified
cloudinit/util.py (+6/-1) tests/unittests/test_util.py (+34/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Ryan Harper | Approve | ||
Review via email: mp+338586@code.launchpad.net |
Commit message
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
Description of the change
see commit message
To post a comment you must log in.
FAILED: Continuous integration, rev:927423ed11f 3e2695384521a4f fe8c54df153a75 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 780/
https:/
Executed test runs:
SUCCESS: Checkout
FAILED: Unit & Style Tests
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 780/rebuild
https:/