[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua interpreter and Lua files encoding
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 6 Jan 2011 09:46:49 -0500
On Thu, Jan 6, 2011 at 5:04 AM, Lorenzo Donati
> ...even if a general binary stream cannot be encoded as a Lua file, can we
> at least depend on the fact that a stream of utf-8 octets (trusting what
> Wikipedia said) can be safely embedded in a string literal, as John's test
> seems to prove?
the only transformations done by the lexer seem to be on ASCII
whitespace (specifically normalizing and trimming some newlines). no
non-ASCII character is affected, since a multi-octect UTF8 character
won't contain 0x0D or 0x0A.