Merge branch 'bugfix/fix_idf_monitor_unicode_path_crash_v3.3' into 'release/v3.3'

tools: handle exception in case of logging Unicode characters (v3.3)

See merge request espressif/esp-idf!13045
This commit is contained in:
Ivan Grokhotkov 2021-05-31 17:24:06 +00:00
commit c7add96e64

View File

@ -764,6 +764,9 @@ if os.name == 'nt':
# an exception (however, the character is still written to the screen)
# Ref https://github.com/espressif/esp-idf/issues/1136
pass
except UnicodeDecodeError:
# In case of double byte Unicode characters display '?'
self.output.write('?')
def write(self, data):
if isinstance(data, bytes):