Преглед изворни кода

Merge pull request #97618 from Repiteo/scons/decode-fix

SCons: Fix MSVC decode error
Rémi Verschelde пре 1 година
родитељ
комит
72cff2ed59
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      methods.py

+ 1 - 1
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)