The Lua website has announced an official patch to Lua 5.1.3 (on 7th May 2008), here:
http://www.lua.org/news.html
The fixes in Lua are fairly obscure, as described here:
http://www.lua.org/bugs.html
In the interests of staying up-to-date, I have compiled a version with the normal changes made for MUSHclient (basically, removing some deprecated options), and made a copy available here (102 Kb):
http://www.gammon.com.au/files/mushclient/lua5.1_extras/lua.5.1.3_patched.zip
The md5sum for this file is:
If you want to obtain a copy, download the above zip file, inside you will find lua5.1.dll - copy that file into the MUSHclient installation directory (the same directory that has MUSHclient.exe in it), probably:
The changes from stock Lua 5.1.3 and the version above are:
To compile, I used this:
http://www.lua.org/news.html
The fixes in Lua are fairly obscure, as described here:
http://www.lua.org/bugs.html
In the interests of staying up-to-date, I have compiled a version with the normal changes made for MUSHclient (basically, removing some deprecated options), and made a copy available here (102 Kb):
http://www.gammon.com.au/files/mushclient/lua5.1_extras/lua.5.1.3_patched.zip
The md5sum for this file is:
2f06ac6a9f7edb0fc63bd6704149a941 *lua.5.1.3_patched.zip
If you want to obtain a copy, download the above zip file, inside you will find lua5.1.dll - copy that file into the MUSHclient installation directory (the same directory that has MUSHclient.exe in it), probably:
C:\Program Files\MUSHclientThe changes from stock Lua 5.1.3 and the version above are:
- The patches released on the Lua web site applied. This is from this file:
http://www.lua.org/ftp/patch-lua-5.1.3
- The following patches applied:
diff -d ../../lua-5.1.3_as_patched/src/Makefile ../../lua-5.1.3/src/Makefile 11c11 < CFLAGS= -O2 -Wall $(MYCFLAGS) --- > CFLAGS= -O3 -Wall $(MYCFLAGS) 107c107 < $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \ --- > $(MAKE) "LUA_A=lua5.1.dll" "LUA_T=lua.exe" \ diff -d ../../lua-5.1.3_as_patched/src/luaconf.h ../../lua-5.1.3/src/luaconf.h 336c336 < #define LUA_COMPAT_VARARG --- > #undef LUA_COMPAT_VARARG 343c343 < #define LUA_COMPAT_MOD --- > #undef LUA_COMPAT_MOD 351c351 < #define LUA_COMPAT_LSTR 1 --- > #undef LUA_COMPAT_LSTR 358c358 < #define LUA_COMPAT_GFIND --- > #undef LUA_COMPAT_GFIND 738a739 > #define LUA_USELONGLONG // njg 741c742 < #define LUA_INTFRMLEN "ll" --- > #define LUA_INTFRMLEN "I64"
To compile, I used this:
make "CC=gcc -mno-cygwin" mingw