Re: Возможна ли поддержка тиклем юникода?
На Sun, 18 Jan 2009 22:56:48 +0300
Alexey Pechnikov <pechnikov@sandy.ru> записано:
> Из описания:
> wchar_t
> Integer type whose range of values can represent distinct
> wide-character codes for all members of the largest character set
> specified among the locales supported by the compilation environment:
> the null character has the code value 0
Здесь про 2 байта ничего не сказано.
>
> wchar_t - это два байта, то есть UTF-16, откуда возьмется utf-32?
[gq@thus:/tmp]$ cat
char.c
(23:16 18/01/09) #include <stdio.h> #include <wchar.h>
int main(){
printf("%d\n", sizeof(wchar_t));
}
[gq@thus:/tmp]$ gcc char.c -o
char
(23:17 18/01/09)
[gq@thus:/tmp]$ ./char
(23:17 18/01/09) 4
[1] 11145 exit 2 ./char
[gq@thus:/tmp]$
--
Best regards,
Alexander GQ Gerasiov
Contacts:
e-mail: gq@cs.msu.su Jabber: gq@jabber.ru
Homepage: http://gq.net.ru ICQ: 7272757
PGP fingerprint: 0628 ACC7 291A D4AA 6D7D 79B8 0641 D82A E3E3 CE1D
Reply to: