From 9a8fcd52637d6e61003bd5ba8a25d48ec6cce989 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Sun, 29 Sep 2024 07:52:51 -0500 Subject: [PATCH] SCons: Fix MSVC decode error --- methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods.py b/methods.py index 411ce59d9e2..df7ca5a59fc 100644 --- a/methods.py +++ b/methods.py @@ -807,7 +807,7 @@ def get_compiler_version(env): if env.msvc and not using_clang(env): try: - args = [env["VSWHERE"], "-latest", "-products", "*", "-requires", "Microsoft.Component.MSBuild"] + args = [env["VSWHERE"], "-latest", "-products", "*", "-requires", "Microsoft.Component.MSBuild", "-utf8"] version = subprocess.check_output(args, encoding="utf-8").strip() for line in version.splitlines(): split = line.split(":", 1)