diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-02-19 17:18:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-02-19 17:18:37 +0800 |
commit | b6e452ccac0cbf150c8ffc4a9738e7e9202fc07c (patch) | |
tree | 6bb06fb1af05b88b26a6d257ca25bdf6977c7edd /script/encoder/ansi.lua | |
parent | eab7e6d84bd2bd937cf2e27e9da11a3c96c45605 (diff) | |
download | lua-language-server-b6e452ccac0cbf150c8ffc4a9738e7e9202fc07c.zip |
挪到 bee.windows
Diffstat (limited to 'script/encoder/ansi.lua')
-rw-r--r-- | script/encoder/ansi.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/script/encoder/ansi.lua b/script/encoder/ansi.lua index f5273c51..7cb64ec3 100644 --- a/script/encoder/ansi.lua +++ b/script/encoder/ansi.lua @@ -1,24 +1,24 @@ local platform = require 'bee.platform' -local unicode +local windows if platform.OS == 'Windows' then - unicode = require 'bee.unicode' + windows = require 'bee.windows' end local m = {} function m.toutf8(text) - if not unicode then + if not windows then return text end - return unicode.a2u(text) + return windows.a2u(text) end function m.fromutf8(text) - if not unicode then + if not windows then return text end - return unicode.u2a(text) + return windows.u2a(text) end return m |