diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 12:04:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-15 16:08:33 +0800 |
commit | 9d2be68b46194a18132c57c26034823b1752a300 (patch) | |
tree | 1b344bd994fd6bc946c2d4b5deebac6370ff0c7e /script/library.lua | |
parent | 47c0a57dc43f698f0152616fccd183516ad769d0 (diff) | |
download | lua-language-server-9d2be68b46194a18132c57c26034823b1752a300.zip |
resolve utf16 bom
Diffstat (limited to 'script/library.lua')
-rw-r--r-- | script/library.lua | 2 |
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 |