mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'bugfix/fix_idf_monitor_unicode_path_crash_v4.2' into 'release/v4.2'
tools: handle exception in case of logging Unicode characters (v4.2) See merge request espressif/esp-idf!13042
This commit is contained in:
@ -1041,6 +1041,9 @@ if os.name == 'nt':
|
|||||||
# Also possible for Windows to throw an OSError error if the data is invalid for the console
|
# Also possible for Windows to throw an OSError error if the data is invalid for the console
|
||||||
# (garbage bytes, etc)
|
# (garbage bytes, etc)
|
||||||
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