There's no guarantee that the encoding of subprocess.check_output is utf-8, so characters like ä inside the environment will cause msvc_utils.DeduceEnv to throw an exception. The PR adds a function that finds the correct code page so the output can be decoded properly.
There's no guarantee that the encoding of
subprocess.check_output
isutf-8
, so characters likeä
inside the environment will causemsvc_utils.DeduceEnv
to throw an exception. The PR adds a function that finds the correct code page so the output can be decoded properly.