mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: fix control characters print if hints enabled
Closes https://github.com/espressif/esp-idf/issues/11351
This commit is contained in:
parent
400549eeba
commit
e84e884d66
@ -289,7 +289,7 @@ class RunTool:
|
|||||||
if len(buffer) > 4:
|
if len(buffer) > 4:
|
||||||
# Multi-byte character contain up to 4 bytes and if buffer have more then 4 bytes
|
# 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
|
# 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
|
# use ANSI color converter for Monitor on Windows
|
||||||
output_converter = get_ansi_converter(output_stream) if self.convert_output else output_stream
|
output_converter = get_ansi_converter(output_stream) if self.convert_output else output_stream
|
||||||
|
Loading…
x
Reference in New Issue
Block a user