aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-19 15:04:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-19 15:04:58 -0300
commit9d28e2b3e5bb7efe02358e2bbb730d732af69edf (patch)
tree81f988df95df04084013739a31650a40e99776d7
parent49ca1f708356bceef8a0120d72da03a6856c23b9 (diff)
downloadlua-9d28e2b3e5bb7efe02358e2bbb730d732af69edf.tar.gz
lua-9d28e2b3e5bb7efe02358e2bbb730d732af69edf.tar.bz2
lua-9d28e2b3e5bb7efe02358e2bbb730d732af69edf.zip
bug with io.read(op, "*n")
-rw-r--r--bugs18
1 files changed, 14 insertions, 4 deletions
diff --git a/bugs b/bugs
index 430c8f7a..c2fd3ecd 100644
--- a/bugs
+++ b/bugs
@@ -1880,8 +1880,8 @@ patch = [[
1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4 1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4
1881@@ -1,5 +1,5 @@ 1881@@ -1,5 +1,5 @@
1882 /* 1882 /*
1883-** $Id: bugs,v 1.105 2009/11/23 14:59:30 roberto Exp roberto $ 1883-** $Id: bugs,v 1.106 2010/04/19 16:39:25 roberto Exp roberto $
1884+** $Id: bugs,v 1.105 2009/11/23 14:59:30 roberto Exp roberto $ 1884+** $Id: bugs,v 1.106 2010/04/19 16:39:25 roberto Exp roberto $
1885 ** load precompiled Lua chunks 1885 ** load precompiled Lua chunks
1886 ** See Copyright Notice in lua.h 1886 ** See Copyright Notice in lua.h
1887 */ 1887 */
@@ -2265,7 +2265,17 @@ since = [[5.0]],
2265example = [[ 2265example = [[
2266x = string.rep("x", 10000) .. "%d" 2266x = string.rep("x", 10000) .. "%d"
2267print(string.format(x)) -- gives wrong error message 2267print(string.format(x)) -- gives wrong error message
2268patch = [[ 2268patch = nil
2269]] 2269}
2270
2271Bug{
2272what = [['io.read(op, "*n")' may return garbage if second read fails]],
2273report = [[Roberto I., 2010/04/12]],
2274since = [[5.0]],
2275example = [[
2276print(io.read("*n", "*n") --<< enter "10 hi"
2277--> file (0x884420) nil
2278]],
2279patch = nil
2270} 2280}
2271 2281