From 85450b9983ec16b27981572c258298e6fbf2f59d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 11 Mar 2015 16:53:07 -0400 Subject: Updated to Lua 5.3, LPeg 0.12.2, and lfs 1.6.3. LuaJIT uses Lua 5.3's new utf8 library. Restored documentation for Lua 5.1 symbols and added deprecation notes. --- src/lutf8libjit.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/lutf8libjit.patch (limited to 'src/lutf8libjit.patch') diff --git a/src/lutf8libjit.patch b/src/lutf8libjit.patch new file mode 100644 index 00000000..72a09840 --- /dev/null +++ b/src/lutf8libjit.patch @@ -0,0 +1,14 @@ +--- lutf8lib.c 2015-01-12 18:46:22.334838510 -0500 ++++ lib/lutf8lib.c 2015-01-12 22:42:54.527406794 -0500 +@@ -246,8 +246,9 @@ + }; + + +-LUAMOD_API int luaopen_utf8 (lua_State *L) { +- luaL_newlib(L, funcs); ++int luaopen_utf8 (lua_State *L) { ++ lua_newtable(L), luaL_register(L, NULL, funcs); ++ lua_pushvalue(L, -1), lua_setglobal(L, "utf8"); + lua_pushliteral(L, UTF8PATT); + lua_setfield(L, -2, "charpattern"); + return 1; -- cgit v1.2.3