mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
Merge branch 'bugfix/fix_idf_monitor_unicode_path_crash_v4.0' into 'release/v4.0'
tools: handle exception in case of logging Unicode characters (v4.0) See merge request espressif/esp-idf!13044
This commit is contained in:
@@ -824,6 +824,9 @@ if os.name == 'nt':
|
|||||||
# an exception (however, the character is still written to the screen)
|
# an exception (however, the character is still written to the screen)
|
||||||
# Ref https://github.com/espressif/esp-idf/issues/1136
|
# Ref https://github.com/espressif/esp-idf/issues/1136
|
||||||
pass
|
pass
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
# In case of double byte Unicode characters display '?'
|
||||||
|
self.output.write('?')
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
if isinstance(data, bytes):
|
if isinstance(data, bytes):
|
||||||
|
Reference in New Issue
Block a user