mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
Merge branch 'bugfix/fix_idf_monitor_unicode_path_crash' into 'master'
tools: handle exception in case of logging Unicode characters Closes IDF-2867 See merge request espressif/esp-idf!12520
This commit is contained in:
@@ -1269,6 +1269,9 @@ if os.name == 'nt':
|
||||
# Also possible for Windows to throw an OSError error if the data is invalid for the console
|
||||
# (garbage bytes, etc)
|
||||
pass
|
||||
except UnicodeDecodeError:
|
||||
# In case of double byte Unicode characters display '?'
|
||||
self.output.write('?')
|
||||
|
||||
def write(self, data):
|
||||
if isinstance(data, bytes):
|
||||
|
Reference in New Issue
Block a user