diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-19 15:04:58 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-19 15:04:58 -0300 |
| commit | 9d28e2b3e5bb7efe02358e2bbb730d732af69edf (patch) | |
| tree | 81f988df95df04084013739a31650a40e99776d7 /bugs | |
| parent | 49ca1f708356bceef8a0120d72da03a6856c23b9 (diff) | |
| download | lua-9d28e2b3e5bb7efe02358e2bbb730d732af69edf.tar.gz lua-9d28e2b3e5bb7efe02358e2bbb730d732af69edf.tar.bz2 lua-9d28e2b3e5bb7efe02358e2bbb730d732af69edf.zip | |
bug with io.read(op, "*n")
Diffstat (limited to 'bugs')
| -rw-r--r-- | bugs | 18 |
1 files changed, 14 insertions, 4 deletions
| @@ -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]], | |||
| 2265 | example = [[ | 2265 | example = [[ |
| 2266 | x = string.rep("x", 10000) .. "%d" | 2266 | x = string.rep("x", 10000) .. "%d" |
| 2267 | print(string.format(x)) -- gives wrong error message | 2267 | print(string.format(x)) -- gives wrong error message |
| 2268 | patch = [[ | 2268 | patch = nil |
| 2269 | ]] | 2269 | } |
| 2270 | |||
| 2271 | Bug{ | ||
| 2272 | what = [['io.read(op, "*n")' may return garbage if second read fails]], | ||
| 2273 | report = [[Roberto I., 2010/04/12]], | ||
| 2274 | since = [[5.0]], | ||
| 2275 | example = [[ | ||
| 2276 | print(io.read("*n", "*n") --<< enter "10 hi" | ||
| 2277 | --> file (0x884420) nil | ||
| 2278 | ]], | ||
| 2279 | patch = nil | ||
| 2270 | } | 2280 | } |
| 2271 | 2281 | ||
