From 85b96879f299d79fc3d0da26a012c235730ca805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Krzywdzi=C5=84ski?= Date: Thu, 4 Feb 2021 15:21:01 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20eclipse=20build:=20=E2=80=9CUnicodeDecode?= =?UTF-8?q?Error:=20'ascii'=20codec=20can't=20decode=20byte=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes https://github.com/espressif/esp-idf/pull/6505 --- tools/windows/eclipse_make.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/windows/eclipse_make.py b/tools/windows/eclipse_make.py index 4f877ccf82..20e795ae1d 100644 --- a/tools/windows/eclipse_make.py +++ b/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):