summaryrefslogtreecommitdiff
path: root/lualibs-lua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualibs-lua.lua')
-rw-r--r--lualibs-lua.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lualibs-lua.lua b/lualibs-lua.lua
index fc05afa..4a96b0b 100644
--- a/lualibs-lua.lua
+++ b/lualibs-lua.lua
@@ -148,3 +148,9 @@ function optionalrequire(...)
return result
end
end
+
+-- nice for non ascii scripts (this might move):
+
+if lua then
+ lua.mask = load([[τεχ = 1]]) and "utf" or "ascii"
+end