Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread Andrei Zmievski
No. http://www.unicode.org/faq/basic_q.html#23 -Andrei On Aug 13, 2005, at 1:29 PM, Wez Furlong wrote: And isn't UTF16 === UCS2 ? --Wez. On 8/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Umm, don't we use UC

Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread Andrey Hristov
Just my $0.02, for the MS compilers wchar_t is 2 bytes while for gcc it is 4. Andrey Wez Furlong wrote: "the fundamental representation of text in Windows NT-based operating systems is UTF-16, and the WCHAR data type is a UTF-16 code unit" So, it looks like we don't need to do anything speci

Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread Wez Furlong
"the fundamental representation of text in Windows NT-based operating systems is UTF-16, and the WCHAR data type is a UTF-16 code unit" So, it looks like we don't need to do anything special. --Wez. On 8/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Wez, > > UCS2 is limited to the repre

Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread cshmoove
Wez, UCS2 is limited to the representing characters within the BMP ( 1 code-unit == 1 code-point) UTF16 uses surrogates to address characters beyond the BMP (so a code-point may be represented by 2 code-units) clayton "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

RE: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread David Zülke
http://www.unicode.org/faq/basic_q.html#23 > -Original Message- > From: Wez Furlong [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 13, 2005 10:30 PM > To: [EMAIL PROTECTED] > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: php-src /ext/com_dot

Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread Wez Furlong
And isn't UTF16 === UCS2 ? --Wez. On 8/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > "Wez Furlong" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Umm, don't we use UCS2 internally? > > actually ICU is UTF16... > > l0t3k > > > --Wez. > > On 8/13/05, [EMAIL PROTECTED]

Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread cshmoove
"Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Umm, don't we use UCS2 internally? actually ICU is UTF16... l0t3k --Wez. On 8/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Wez, > > > + case IS_UNICODE: > > + V_VT(v) = VT_BSTR; > > + V_BSTR(v) = SysAllocString

Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread Wez Furlong
Umm, don't we use UCS2 internally? --Wez. On 8/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Wez, > > > + case IS_UNICODE: > > + V_VT(v) = VT_BSTR; > > + V_BSTR(v) = SysAllocString(Z_USTRVAL_P(z)); > > + break; > > my understanding is that Win32 uses UCS2, so do we need to account for >

[PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread cshmoove
Wez, > + case IS_UNICODE: > + V_VT(v) = VT_BSTR; > + V_BSTR(v) = SysAllocString(Z_USTRVAL_P(z)); > + break; my understanding is that Win32 uses UCS2, so do we need to account for surrogates ? l0t3k ""Wez Furlong"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > wez Sat Aug 13 15: