Merge branch 'fix/hints-print-control-characters_v5.0' into 'release/v5.0'

tools: fix control characters print if hints enabled (v5.0)

See merge request espressif/esp-idf!23890
This commit is contained in:
Roland Dobai 2023-05-25 23:44:10 +08:00
commit f0ddb37f06

View File

@ -289,7 +289,7 @@ class RunTool:
if len(buffer) > 4:
# Multi-byte character contain up to 4 bytes and if buffer have more then 4 bytes
# and still can not decode it we can just ignore some bytes
return buffer.decode(errors='ignore')
return buffer.decode(errors='replace')
# use ANSI color converter for Monitor on Windows
output_converter = get_ansi_converter(output_stream) if self.convert_output else output_stream