kopia lustrzana https://github.com/espressif/esp-idf
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!12520pull/6828/head
commit
eec9e414d5
|
@ -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
|
# 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):
|
||||||
|
|
Ładowanie…
Reference in New Issue