summaryrefslogtreecommitdiff
path: root/script/encoder
diff options
context:
space:
mode:
Diffstat (limited to 'script/encoder')
-rw-r--r--script/encoder/ansi.lua12
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