[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String indexing again
- From: Greg Falcon <veloso@...>
- Date: Mon, 20 Dec 2010 11:02:31 -0500
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