[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: NUL byte in string literal
- From: Matthew Wild <mwild1@...>
- Date: Mon, 2 Apr 2018 16:14:20 +0100
On 2 April 2018 at 15:39, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>> I feel the manual is a bit misleading when it says the following:
>>
>> > Strings in Lua can contain any 8-bit value, including embedded zeros, which can be specified as '\0'.
>
> I could not find that sentence in the current manual (Lua 5.3.4).
Oh, please accept my apologies, I had the 5.2 manual open instead of 5.3.
5.3 has: "Lua is 8-bit clean: strings can contain any 8-bit value,
including embedded zeros ('\0')."
which resolves the issue.
Regards,
Matthew