Re: intl win32, which ICU version and binaries?

From: Date: Thu, 10 Apr 2008 19:43:01 +0000
Subject: Re: intl win32, which ICU version and binaries?
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-36929@lists.php.net to get a copy of this message
On Thu, Apr 10, 2008 at 9:07 PM, Stanislav Malyshev <stas@zend.com> wrote: > Hi! > > > > > UnicodeString::UnicodeString(unsigned short const *,int) seems > > actually wrong, for what I can see in the headers. There is no > > > > It builds on my machine. And it uses UnicodeString(UChar *, int) which > looks OK and ctor with this signature is defined in unistr.h. > > > > > it this way is correct, should you not use the UNICODE_STRING macro? > > > > Seems to be roughly the same... Ah? in 3.6/8 it takes three arguments on my architecture (win xp, 32bit mode with amd64). Which version do you use? The define: #if U_SIZEOF_WCHAR_T==U_SIZEOF_UCHAR && (U_CHARSET_FAMILY==U_ASCII_FAMILY || (U_SIZEOF_UCHAR == 2 && defined(U_WCHAR_IS_UTF16))) # define UNICODE_STRING(cs, _length) UnicodeString(TRUE, (const UChar *)L ## cs, _length) #elif U_SIZEOF_UCHAR==1 && U_CHARSET_FAMILY==U_ASCII_FAMILY # define UNICODE_STRING(cs, _length) UnicodeString(TRUE, (const UChar *)cs, _length) #else # define UNICODE_STRING(cs, _length) UnicodeString(cs, _length, US_INV) #endif Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#36929) next »