Browse Source

idf_tool: fix unicode decode error

Closes https://github.com/espressif/esp-idf/issues/3841
suda-morris 6 years ago
parent
commit
3753283ef3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/idf_tools.py

+ 1 - 1
tools/idf_tools.py

@@ -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