A new patch file for Lua 5.1.4 is available at http://www.lua.org/ftp/patch-lua-5.1.4-2 It combines all patches listed below, including fixes for bugs #7 and #8. http://www.lua.org/bugs.html#5.1.4 Apply this patch to a pristine copy of Lua 5.1.4 with: wget http://www.lua.org/ftp/lua-5.1.4.tar.gz tar zxf lua-5.1.4.tar.gz cd lua-5.1.4/src wget http://www.lua.org/ftp/patch-lua-5.1.4-2 patch < patch-lua-5.1.4-2 Use curl -O -R if you don't have wget (e.g., in Mac OS X). This patch is identified by this data: # patch-lua-5.1.4-2 created 2010年05月14日T21:02:40-0300 md5: 1239310e0c4a581c7831e596f95cc6cd All feedback welcome. --lhf