Merge branch 'bugfix/idf_tool_default_encoding_v4.0' into 'release/v4.0'

idf_tool: fix UnicodeDecodeError (v4.0)

See merge request espressif/esp-idf!5720
pull/4260/head
Angus Gratton 2019-08-15 16:35:58 +08:00
commit d4fcbe37f3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -442,7 +442,7 @@ class IDFTool(object):
raise ToolExecError('Command {} has returned non-zero exit code ({})\n'.format(
' '.join(self._current_options.version_cmd), e.returncode))
in_str = version_cmd_result.decode()
in_str = version_cmd_result.decode("utf-8")
match = re.search(self._current_options.version_regex, in_str)
if not match:
return UNKNOWN_VERSION