diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-03-07 08:58:19 +1300 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-03-07 09:02:06 +1300 |
commit | 05b85281420b640b6fcc85520d24519731fe295d (patch) | |
tree | 9d3464d3f42318ca745fcbde593b24274600c9c3 /urls.py | |
parent | 19a559cfa665b1add51fad41b7db88237fa82a09 (diff) | |
download | openembedded-core-contrib-05b85281420b640b6fcc85520d24519731fe295d.tar.gz |
update.py: use reader to decode subprocess output correctly
We can't decode UTF-8 characters byte-by-byte, as soon as we hit a
character that's more than one byte long then we'll fail. Use a reader
object to do it properly. This fixes parsing current meta-angstrom on
master. At the same time, specify errors="surrogateescape" to avoid the
update process dying at this point in case of characters that aren't
valid UTF-8.
Thanks to Jiajie Hu <jiajie.hu@intel.com> who fixed this in devtool's
very similar code.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'urls.py')
0 files changed, 0 insertions, 0 deletions