]> code.ossystems Code Review - openembedded-core.git/commit
insane.bbclass:buildpaths: open() file with 'rb'
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 1 Nov 2016 12:44:46 +0000 (05:44 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 6 Nov 2016 23:35:17 +0000 (23:35 +0000)
commitddbab61f47efd9b4fde38ef8f0f3482c78abe37c
treeb41e73d8d55edb6c5c2a5a9c3c61768e7ff41e00
parent42d5781e31c5bf76b5b7e27abed4f6f3fd65bf40
insane.bbclass:buildpaths: open() file with 'rb'

open() is default to 'rt' which may cause decoding errors when open
binary file:
$ bitbake xcursor-transparent-theme
[snip]
Exception: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 18: invalid start byte
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/insane.bbclass