Merge branch 'bugfix/cmake_utf_decode' into 'master'

tools: Fix Unicode decode error & indentation error

See merge request idf/esp-idf!3669
This commit is contained in:
Angus Gratton 2018-11-13 09:54:28 +08:00
commit beada90b06

View file

@ -42,7 +42,7 @@ def get_make_variables(path, makefile="Makefile", expected_failure=False, variab
result = {}
BUILT_IN_VARS = set(["MAKEFILE_LIST", "SHELL", "CURDIR", "MAKEFLAGS"])
for line in output.decode().split("\n"):
for line in output.decode('utf-8').split("\n"):
if line.startswith("# makefile"): # this line appears before any variable defined in the makefile itself
next_is_makefile = True
elif next_is_makefile: