diff options
| -rw-r--r-- | xmake/modules/private/tools/vstool.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/tools/vstool.lua b/xmake/modules/private/tools/vstool.lua index 83539d301..05c7a16b6 100644 --- a/xmake/modules/private/tools/vstool.lua +++ b/xmake/modules/private/tools/vstool.lua @@ -43,7 +43,7 @@ function runv(program, argv, opt) if ok ~= 0 then -- read errors - local outdata = os.isfile(outpath) and io.readfile(outpath) or nil + local outdata = os.isfile(outpath) and io.readfile(outpath, {encoding = "utf16le"}) or nil local errdata = os.isfile(errpath) and io.readfile(errpath) or nil local errors = errdata or "" if #errors:trim() == 0 then @@ -92,7 +92,7 @@ function iorunv(program, argv, opt) -- get output and error data outfile:close() - local outdata = os.isfile(outpath) and io.readfile(outpath) or nil + local outdata = os.isfile(outpath) and io.readfile(outpath, {encoding = "utf16le"}) or nil local errdata = os.isfile(errpath) and io.readfile(errpath) or nil -- remove the temporary output and error file |
