diff options
| author | ruki <[email protected]> | 2021-01-13 23:07:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-13 23:07:49 +0800 |
| commit | 3bbc5074add71d4f5d864f6cfe02abb6646ac4ac (patch) | |
| tree | a85a9aa2b03e63713d132edd50e5711b12bcc03b | |
| parent | be039661f2607b4055ded52a626ce904fc854565 (diff) | |
improve find_vstudio
| m--------- | core/src/tbox/tbox | 0 | ||||
| -rw-r--r-- | xmake/modules/detect/sdks/find_vstudio.lua | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox -Subproject b65c07068e36eec351de7efac2a69332f3c6738 +Subproject 6e5fb77c5ab5c0d712871c52c42a5bc7843cd78 diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua index f833f304d..d908bcc5a 100644 --- a/xmake/modules/detect/sdks/find_vstudio.lua +++ b/xmake/modules/detect/sdks/find_vstudio.lua @@ -45,6 +45,9 @@ function _load_vcvarsall(vcvarsall, vsver, arch, opt) local genvcvars_bat = os.tmpfile() .. "_genvcvars.bat" local file = io.open(genvcvars_bat, "w") file:print("@echo off") + -- @note we need get utf8 output from cmd.exe + -- because some %PATH% and other envs maybe contains unicode characters + file:print("chcp 65001") -- fix error caused by the new vsDevCmd.bat of vs2019 -- @see https://github.com/xmake-io/xmake/issues/549 if vsver and tonumber(vsver) >= 16 then |
