[U-Boot] [PATCH 03/15] test/py: Fix unicode handling for log filtering

Stephen Warren swarren at wwwdotorg.org
Mon Sep 24 15:54:13 UTC 2018


On 09/23/2018 04:47 PM, Simon Glass wrote:
> At present the unicode filtering seems to get confused at times with
> this error:
> 
>    UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position
>       32: ordinal not in range(128)
> 
> It seems to be due to self._nonprint being interpreted as UTF-8. Fix it
> by using ordinals instead of characters, changing the string to set.

Reviewed-by: Stephen Warren <swarren at nvidia.com>


More information about the U-Boot mailing list