]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
insane.bbclass:buildpaths: open() file with 'rb' rbt/bp
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 1 Nov 2016 12:25:46 +0000 (05:25 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Tue, 1 Nov 2016 12:43:50 +0000 (05:43 -0700)
commit07270c9fd68b8a4a4154458ad01d44da1c66291a
treede1bb6cbecf1c2df3ad0786310775611b6314567
parent98c6ebf1e05158c689e01b785d32757847cdb10c
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>
meta/classes/insane.bbclass