lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Sorry, I can't reproduce the issue.
> It works fine for me on Linux (luajit)
> and Windows (luajit and vanilla Lua 5.2).

Fails using Lua 5.1.4 on Windows Vista. LuaJIT 2.0.0-beta10 returns
the correct result on the same system.

It seems like this was fixed in 5.2 and probably backported to LuaJIT:
http://lua-users.org/lists/lua-l/2007-07/msg00364.html. LuaJIT quotes
it the same way I did with gsub.

Paul.

On Fri, Nov 2, 2012 at 5:12 PM, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> On 11/3/12, Paul K <paulclinger@yahoo.com> wrote:
>> -- eof.lua
>> print(("print %q"):format("1\n2\0263"))
>>
>>> lua eof.lua | lua
>> returns "unfinished string near '<eof>'".
>
> Hi Paul,
>
> Sorry, I can't reproduce the issue.
> It works fine for me on Linux (luajit)
> and Windows (luajit and vanilla Lua 5.2).
>