[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Plea for the support of unicode escape sequences
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 1 Jul 2011 10:27:08 -0300
> You could redefine Lua to use wchar_t in strings. And that's why I
> mentioned escapes greater than 255. As more than one person pointed
> out, I confused sizeof() with CHAR_BIT. Well, you could
> "#define char int" but that would be cheating. Or not? I see a few
> "sizeof(char)" in the Lua source. But it does assume that "char" has
> not been redefined in other places. It does test against UCHAR_MAX
> but with the assumption that it is less than 1000. (Only three
> decimal digits or two hexadecimal.)
The main goal of the "sizeof(char)" in the source is as a form of
documentation. It intends to easy the task of anyone who wants to
change 'char' to something else, but not with a #define char....
Several details still must be handed carefully.
-- Roberto