aboutsummaryrefslogtreecommitdiff
path: root/src/lutf8libjit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/lutf8libjit.patch')
-rw-r--r--src/lutf8libjit.patch14
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;