lua-users home
lua-l archive

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


Your point about multibyte characters is well taken, but:

On Sun, Dec 19, 2010 at 5:32 PM, Tony Finch <dot@dotat.at> wrote:
> On 19 Dec 2010, at 22:19, Greg Falcon <veloso@verylowsodium.com> wrote:
>>
>> A subtle point here:  This snippet from the manual is talking about
>> the *character* at s[1], and Lua doesn't have a character type.
>
> It says character but it means octet.

It probably means character in the C "char" sense.  "Octet" is not an
appropriate word to use for this concept in portable C programs, since
chars/bytes in standard C are allowed to be wider than 8 bits in
standard-conforming implementations.

Greg F