[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bug report :-(
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 22 Sep 2000 16:06:46 -0300 (EST)
>The call «read("*w")» (to read a word) should return nil at end of file.
>Instead, it is returning the empty string. You can correct this with a
>one-line patch:
>
>liolib.c: 327c327
>< return (lua_strlen(L, 1) > 0);
>---
>> return (lua_strlen(L, -1) > 0);
The package lua-4.0-beta.tar.gz in the official sites has been updated
with this patch. The RCS version of liolib.c is 1.84a in the patched version.
--lhf