in reply to Re^3: Perl Modules for handling Non English text
in thread Perl Modules for handling Non English text
My answer was based upon ANSI C:
In this Perl discussion, that's as relevant as Java using 32-bit wide chars. I can understanding the mistake of bringing it up initially, but why bring it up again.
And it's wrong. ANSI C says nothing about wchar_t being 16-bit. sizeof(wchar_t) can be as small as 1, and it's commonly 4. In fact, your own program betrays you. Also from gcc on an Intel:
$ gcc -o a a.c $ a hello world size of a wide char is 4 bytes
4294967295 is just a 32 bit unsigned hex number.
And how did I get that number? By getting the character number of "\x{FFFFFFFF}". Therefore, I had a 32-bit character.
But basically 16 bits does it.
Your own reference contradicts you. 17 planes of 16 bits = way more than 16 bits. (21, to be precise.)
For example, these Chinese chars require more than 16 bits.
I don't know how many bits Hindi requires.
It varies by encoding, and it can even vary withing an encoding. But it's completely irrelevant. Perl supports all Unicode characters, including the Hindi ones.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl Modules for handling Non English text
by Marshall (Canon) on Mar 31, 2009 at 04:15 UTC | |
by ikegami (Patriarch) on Mar 31, 2009 at 04:53 UTC | |
by Marshall (Canon) on Mar 31, 2009 at 05:08 UTC | |
by ikegami (Patriarch) on Mar 31, 2009 at 05:17 UTC | |
by Marshall (Canon) on Mar 31, 2009 at 06:24 UTC | |
|