forked from espressif/esp-idf
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
This commit is contained in:
@@ -442,7 +442,7 @@ class IDFTool(object):
|
|||||||
raise ToolExecError('Command {} has returned non-zero exit code ({})\n'.format(
|
raise ToolExecError('Command {} has returned non-zero exit code ({})\n'.format(
|
||||||
' '.join(self._current_options.version_cmd), e.returncode))
|
' '.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)
|
match = re.search(self._current_options.version_regex, in_str)
|
||||||
if not match:
|
if not match:
|
||||||
return UNKNOWN_VERSION
|
return UNKNOWN_VERSION
|
||||||
|
Reference in New Issue
Block a user