[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Plea for the support of unicode escape sequences
- From: Xavier Wang <weasley.wx@...>
- Date: Wed, 29 Jun 2011 12:15:49 +0800
在 2011-6-29 上午11:28，"Tom N Harris" <firstname.lastname@example.org>写道：
> On 06/28/2011 04:24 PM, Lorenzo Donati wrote:
>> Unicode escape sequences are platform independent. They are useful for
>> the same reasons why ASCII codes are useful, at least for people working
>> with Unicode.
> Technically, Lua doesn't even require ASCII, as the recent adventures with lctype.c have shown. Unicode is platform specific because not all platforms use the same encoding (UTF-8 vs UTF-16). And when Unicode isn't being used at all this will just be dead-weight in the parser.
> How about supporting escape sequences greater than 255 when sizeof(char)>1 ?
> - tom
As ISO C Standard specified, the size of char is always 1.