diff options
author | Jiajie Hu <jiajie.hu@intel.com> | 2016-11-11 14:02:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 11:02:33 +0000 |
commit | 1875ea92546d23abcab1b40b562477a0016f712d (patch) | |
tree | ee551a27e834f2f0daf65f94f9aefab527826697 /scripts/rpm2cpio.sh | |
parent | d225558aefa8abe0e2d975a0b811a4d73b0ed563 (diff) | |
download | openembedded-core-1875ea92546d23abcab1b40b562477a0016f712d.tar.gz openembedded-core-1875ea92546d23abcab1b40b562477a0016f712d.tar.bz2 openembedded-core-1875ea92546d23abcab1b40b562477a0016f712d.zip |
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.
Signed-off-by: Jiajie Hu <jiajie.hu@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/rpm2cpio.sh')
0 files changed, 0 insertions, 0 deletions