Skip to content
Snippets Groups Projects
Commit 5c724dc4 authored by Simon Glass's avatar Simon Glass
Browse files

patman: Don't convert input data to unicode


The communication filter reads data in blocks and converts each block to
unicode (if necessary) one at a time. In the unlikely event that a unicode
character in the input spans a block this will not work. We get an error
like:

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1022-1023:
   unexpected end of data

There is no need to change the input to unicode, so the easiest fix is to
drop this feature.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
parent 6f8abf76
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment