lua-users home
lua-l archive

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


On Thu, Jan 6, 2011 at 5:04 AM, Lorenzo Donati
<lorenzodonatibz@interfree.it> wrote:
> ...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.

-- 
Javier