[U-Boot] [PATCH v2 04/17] test/py: Fix unicode handling for log filtering
sjg at google.com
sjg at google.com
Wed Oct 10 00:01:45 UTC 2018
On 2.10.2018 05:12, 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.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Stephen Warren <swarren at nvidia.com>
> ---
>
> Changes in v2: None
>
> test/py/multiplexed_log.py | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
Applied to u-boot-dm
More information about the U-Boot
mailing list