summaryrefslogtreecommitdiff
path: root/xmake/core/_xmake_main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-10 22:21:23 +0800
committerruki <[email protected]>2019-07-10 08:08:23 +0800
commitd08ce22527736b59691d26810405961483d68c29 (patch)
treec791070f8a690e221ecb241010bccdb4d1f5a1cd /xmake/core/_xmake_main.lua
parent635a192a0422ba5fcfcf69ef28e25297d649b708 (diff)
read binary lua file
Diffstat (limited to 'xmake/core/_xmake_main.lua')
-rw-r--r--xmake/core/_xmake_main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua
index 809c58715..e0f5ab6f9 100644
--- a/xmake/core/_xmake_main.lua
+++ b/xmake/core/_xmake_main.lua
@@ -49,7 +49,7 @@ function loadfile(filepath)
end
-- load script data from file
- local data, rerrors = io.readfile(filepath)
+ local data, rerrors = io.readfile(filepath, {encoding = "binary"})
if not data then
return nil, rerrors
end