poky/scripts/lib/devtool
Jiajie Hu bfd8c35c3f devtool: fix handling of unicode characters from subprocess stdout
In previous implementation, a UnicodeDecodeError exception will be
raised if multi-byte encoded characters are printed by the subprocess.
As an example, the following command will fail in an en_US.UTF-8
environment because wget quotes its saving destination with '‘'(0xE2
0x80 0x98), while just the first byte is provided for decoding:

    devtool add recipe http://example.com/source.tar.xz

The patch fixes the issue by avoiding such kind of incomplete decoding.

(From OE-Core rev: 1875ea92546d23abcab1b40b562477a0016f712d)

Signed-off-by: Jiajie Hu <jiajie.hu@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-11-23 11:10:15 +00:00
..
__init__.py devtool: fix handling of unicode characters from subprocess stdout 2016-11-23 11:10:15 +00:00
build_image.py scripts: ensure tinfoil is shut down correctly 2016-09-03 23:45:54 +01:00
build_sdk.py devtool: add build-sdk subcommand 2016-03-07 00:11:38 +00:00
build.py devtool: add "rename" subcommand 2016-11-07 11:04:22 +00:00
deploy.py devtool: deploy-target: Avoid unnecessary dependency on awk on the target 2016-10-05 10:10:11 +01:00
package.py devtool: categorise and order subcommands in help output 2016-02-21 09:32:42 +00:00
runqemu.py devtool: runqemu: work around runqemu script path assumption 2016-10-25 22:40:09 +01:00
sdk.py devtool: sdk-update: drop support for local updates 2016-05-21 22:24:57 +01:00
search.py devtool: categorise and order subcommands in help output 2016-02-21 09:32:42 +00:00
standard.py devtool: modify: support recipes with only local files as source 2016-11-23 11:10:14 +00:00
upgrade.py scripts: ensure tinfoil is shut down correctly 2016-09-03 23:45:54 +01:00
utilcmds.py devtool: configure-help: fix error if do_configure not already run 2016-03-25 10:29:13 +00:00