updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / slnunicode / patch_slnunicode.diff
blobe070603a8b1560cfaf5026e9fa04272e61cbb02f
1 Patch taken from the Lua list. Original author appears to be Mike Pall.
2 http://lua-users.org/lists/lua-l/2008-02/msg00043.html
4 --- slnunico.c 2006-07-26 19:20:04.000000000 +0200
5 +++ slnunico.c-new 2008-02-01 17:53:30.000000000 +0100
6 @@ -1321,7 +1321,7 @@
7 /* register unicode itself so require("unicode") works */
8 luaL_register(L, SLN_UNICODENAME,
9 uniclib + (sizeof uniclib/sizeof uniclib[0] - 1)); /* empty func list */
10 - lua_pop(L, 1);
11 + //lua_pop(L, 1);
12 lua_pushinteger(L, MODE_ASCII);
13 luaI_openlib(L, SLN_UNICODENAME ".ascii", uniclib, 1);
14 #ifdef SLNUNICODE_AS_STRING
15 @@ -1360,6 +1360,9 @@
18 #endif
20 + lua_settop(L, 2);
22 return 1;