diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-09 16:56:50 +0200 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-09 16:56:50 +0200 |
commit | e67643a60422ed265dc5ad8955a83140598385f1 (patch) | |
tree | 09d1fb57f24b4ad8c405a4dafdd5003499009420 | |
parent | d9475ae1ca5d90213f195ded7c55457a3fe9ca05 (diff) | |
download | luaotfload-e67643a60422ed265dc5ad8955a83140598385f1.tar.gz |
Adapting to Lua 5.2
-rw-r--r-- | otfl-basics-gen.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/otfl-basics-gen.lua b/otfl-basics-gen.lua index bfd81fd..9a328d0 100644 --- a/otfl-basics-gen.lua +++ b/otfl-basics-gen.lua @@ -254,7 +254,8 @@ function caches.compile(data,luaname,lucname) if d and d ~= "" then local f = io.open(lucname,'w') if f then - local s = loadstring(d) + local s + if _G["loadstring"] then s=loadstring(d) else s=load(d) end f:write(string.dump(s)) f:close() end |