mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/idf_tool_default_encoding' into 'master'
idf_tool: fix UnicodeDecodeError Closes IDFGH-1584 See merge request espressif/esp-idf!5323
This commit is contained in:
commit
51d811a71c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user