From f892f6c530f9451ff0190ea76bff6adc5508c8fd Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Tue, 29 Jun 2021 16:37:15 -0400 Subject: [PATCH] windows build: ignore utf-8 decode errors when acquiring vs envvars Change-Id: Id4c8b662a6e10d65bb106cf5ff917f97c8ff4089 --- make-lrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-lrc.py b/make-lrc.py index d4fb78db..c3b3b4aa 100644 --- a/make-lrc.py +++ b/make-lrc.py @@ -73,7 +73,7 @@ def getVSEnv(arch='x64', platform='', version=''): shell=True, stdout=subprocess.PIPE) stdout, _ = p.communicate() - out = stdout.decode('utf-8').split("\r\n")[5:-1] + out = stdout.decode('utf-8', 'ignore').split("\r\n")[5:-1] return dict(s.split('=', 1) for s in out) -- GitLab