[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Strange behavior with Lua 5.2.0 beta-rc1
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 15 Jun 2011 08:19:36 -0300
> but with Lua 5.2.0 beta-rc1, the two lines are concatenated in one
Indeed, there seems to be a \0 after the copyright line, but no \n.
Here is a simpler test:
./lua -v -e'print"hello"' > output
Now output contains a \0 before 'hello'.
The problem is this line in lua.c:
sizeof(LUA_COPYRIGHT) includes \0 so the correct line should be
Thanks for spotting this.