Re: Lua 5.2 Reference Manual
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua 5.2 Reference Manual
- From: Gregory Bonik <gregory@...>
- Date: 2011年9月05日 00:08:09 +0400
Lorenzo Donati wrote:
> IIRC C standard doesn't guarantee that a char is the same size of a
> byte, although that's almost ubiquitous. So a "char" could be not a
> "byte" on some exotic platforms.
By definition, bytes do not necessarily consist of 8 bits. There can be
7-bit bytes or whatever. Thus I think it's OK to equate C's char to a
byte. The word "character" is quite misleading because of the wide use
of UTF-8, while "byte" sounds unambiguously.
--Gregory