diff options
Diffstat (limited to 'script/library.lua')
-rw-r--r-- | script/library.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/library.lua b/script/library.lua index 1b074242..ba7dc657 100644 --- a/script/library.lua +++ b/script/library.lua @@ -10,6 +10,7 @@ local define = require "proto.define" local files = require 'files' local await = require 'await' local timer = require 'timer' +local encoder = require 'encoder' local m = {} @@ -235,6 +236,9 @@ local function initBuiltIn() local metaDoc = compileSingleMetaDoc(fsu.loadFile(libPath), metaLang, status) if metaDoc then local outPath = metaPath / libName + if encoding == 'ansi' then + metaDoc = encoder.utf82ansi(metaDoc) + end out:saveFile(libName, metaDoc) m.metaPaths[#m.metaPaths+1] = outPath:string() end |