From a9d0c389b13a09beeb8b57b43b4d3635fd5eb0f0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 22 Jun 2015 21:58:10 -0400 Subject: Updated to Lua 5.3.1. --- src/Makefile | 2 +- src/lutf8libjit.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 8f801dce..9f95d493 100644 --- a/src/Makefile +++ b/src/Makefile @@ -381,7 +381,7 @@ endif scintilla_tgz = scintilla356.tgz scinterm_zip = scinterm_1.6.zip scintillua_zip = scintillua_3.5.6-1.zip -lua_tgz = lua-5.3.0.tar.gz +lua_tgz = lua-5.3.1.tar.gz lpeg_tgz = lpeg-0.12.2.tar.gz lfs_zip = v_1_6_3.zip lspawn_zip = lspawn_1.2.zip diff --git a/src/lutf8libjit.patch b/src/lutf8libjit.patch index 4aa347d6..7910596d 100644 --- a/src/lutf8libjit.patch +++ b/src/lutf8libjit.patch @@ -9,6 +9,6 @@ +int luaopen_utf8 (lua_State *L) { + lua_newtable(L), luaL_register(L, "utf8", funcs); + lua_pushvalue(L, -1), lua_setglobal(L, "utf8"); - lua_pushliteral(L, UTF8PATT); + lua_pushlstring(L, UTF8PATT, sizeof(UTF8PATT)/sizeof(char) - 1); lua_setfield(L, -2, "charpattern"); return 1; -- cgit v1.2.3