[U-Boot] [PATCH v2 03/10] patman: Don't convert input data to unicode

sjg at google.com sjg at google.com
Wed Jun 7 01:47:37 UTC 2017


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: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 tools/patman/cros_subprocess.py | 4 ----
 1 file changed, 4 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list