[I18n-sig] Support for "wide" Unicode characters
Fredrik Lundh
fredrik@pythonware.com
Thu, 28 Jun 2001 13:55:25 +0200
guido wrote:
> > > There is a new (experimental) define:
> > >
> > > #define PY_UNICODE_SIZE 2
> >
> > Doesn't sizeof(Py_UNICODE) do the same ?
>
> Not on a Cray! And not in the C standard. Ask Tim. :-)
not to mention that the preprocessor doesn't understand sizeof(type)...
(note that in the current implementation, the Py_UNICODE_WIDE macro
is used to enable wide storage and disable the surrogate stuff. it's currently
set if PY_UNICODE_SIZE >= 4, but it might be better to do it the other
way around)
Cheers /F