Jelajahi Sumber

Fix eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte”

Closes https://github.com/espressif/esp-idf/pull/6505
Patryk Krzywdziński 5 tahun lalu
induk
melakukan
ea73e952a1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      tools/windows/eclipse_make.py

+ 1 - 1
tools/windows/eclipse_make.py

@@ -20,7 +20,7 @@ def check_path(path):
         pass
     paths[path] = path  # cache as failed, replace with success if it works
     try:
-        winpath = subprocess.check_output(["cygpath", "-w", path]).decode().strip()
+        winpath = subprocess.check_output(['cygpath', '-w', path]).decode('utf-8').strip()
     except subprocess.CalledProcessError:
         return path  # something went wrong running cygpath, assume this is not a path!
     if not os.path.exists(winpath):