summaryrefslogtreecommitdiff
path: root/script/library.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-02 12:04:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-02 12:04:04 +0800
commit310b96f3e4b285a3a8422745ab01a32ca144e91a (patch)
tree7859fd38c7719bb8b781e56eff97f56986b991d2 /script/library.lua
parent0e47d4c03d30efd7fe508e3bb78f91156ed1f8e7 (diff)
downloadlua-language-server-310b96f3e4b285a3a8422745ab01a32ca144e91a.zip
resolve utf16 bom
Diffstat (limited to 'script/library.lua')
-rw-r--r--script/library.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/library.lua b/script/library.lua
index 0911750e..943e6d2d 100644
--- a/script/library.lua
+++ b/script/library.lua
@@ -236,7 +236,7 @@ local function initBuiltIn()
local metaDoc = compileSingleMetaDoc(fsu.loadFile(libPath), metaLang, status)
if metaDoc then
local outPath = metaPath / libName
- encoder.encode(encoding, metaDoc)
+ metaDoc = encoder.encode(encoding, metaDoc, 'auto')
out:saveFile(libName, metaDoc)
m.metaPaths[#m.metaPaths+1] = outPath:string()
end