diff options
author | 2015-03-11 16:53:07 -0400 | |
---|---|---|
committer | 2015-03-11 16:53:07 -0400 | |
commit | 85450b9983ec16b27981572c258298e6fbf2f59d (patch) | |
tree | 3a9557314cad78bde44d9d2030110339b73669f4 /src/lutf8libjit.patch | |
parent | 920c230f140c38ec072da27e522053aed2a9af75 (diff) | |
download | textadept-85450b9983ec16b27981572c258298e6fbf2f59d.tar.gz textadept-85450b9983ec16b27981572c258298e6fbf2f59d.zip |
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.
Diffstat (limited to 'src/lutf8libjit.patch')
-rw-r--r-- | src/lutf8libjit.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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; |