poky/scripts/lib/recipetool
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
..
__init__.py scripts/recipetool: Add a recipe auto-creation script 2014-12-23 10:18:15 +00:00
append.py scripts: Fix encoding errors for python3 2016-06-02 08:24:01 +01:00
create_buildsys_python.py scripts: python3: convert iterables to lists 2016-06-03 13:13:28 +01:00
create_buildsys.py recipetool: create: avoid decoding errors with Python 3 2016-07-08 09:57:24 +01:00
create_kernel.py recipetool: create: avoid decoding errors with Python 3 2016-07-08 09:57:24 +01:00
create_kmod.py recipetool: create: avoid decoding errors with Python 3 2016-07-08 09:57:24 +01:00
create_npm.py recipetool: create: avoid decoding errors with Python 3 2016-07-08 09:57:24 +01:00
create.py recipetool: create: avoid decoding errors with Python 3 2016-07-08 09:57:24 +01:00
newappend.py recipetool.newappend: fix syntax error for 'not path_ok' error 2016-04-29 07:41:43 +01:00
setvar.py recipetool: make plugin registration function name consistent with devtool 2015-12-01 21:32:05 +00:00