generic-poky/scripts/lib
Paul Eggleton 75f1a0ed42 recipetool: create: avoid decoding errors with Python 3
We're opening source files with the default encoding (utf-8) but we
can't necessarily be sure that they are UTF-8 clean - for example,
recipetool create ftp://mama.indstate.edu/linux/tree/tree-1.7.0.tgz
prior to this patch resulted in a UnicodeDecodeError. Use the
"surrogateescape" mode to avoid this.

Fixes [YOCTO #9822].

(From OE-Core rev: 50fcd9d1b9a20d49bc873467a82a071f2f2f8b5a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-08 09:57:24 +01:00
..
bsp scripts/lib/bsp/help.py: Changed help of yocto-bsp to match latest syntax 2016-07-07 13:38:13 +01:00
devtool devtool: reset: allow specifying multiple recipes 2016-06-15 08:35:01 +01:00
recipetool recipetool: create: avoid decoding errors with Python 3 2016-07-08 09:57:24 +01:00
wic image-live, image-vm, wic: Remove fs size workaround 2016-06-03 13:13:30 +01:00
argparse_oe.py scripts/lib/argparse_oe: also change 'positional arguments' to 'arguments' 2016-05-06 10:31:13 +01:00
scriptpath.py scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
scriptutils.py scripts: Replace basestring -> str for python3 2016-06-02 08:24:01 +01:00