experimental UCS-4 support: added USE_UCS4_STORAGE define to

unicodeobject.h, which forces sizeof(Py_UNICODE) == sizeof(Py_UCS4).
(this may be good enough for platforms that doesn't have a 16-bit
type.  the UTF-16 codecs don't work, though)
This commit is contained in:
Fredrik Lundh 2001-06-26 17:17:07 +00:00
parent 45714e9ecb
commit 1294ad0c59
3 changed files with 25 additions and 12 deletions

View file

@ -5282,9 +5282,11 @@ void _PyUnicode_Init(void)
int i;
/* Doublecheck the configuration... */
#ifndef USE_UCS4_STORAGE
if (sizeof(Py_UNICODE) != 2)
Py_FatalError("Unicode configuration error: "
"sizeof(Py_UNICODE) != 2 bytes");
#endif
/* Init the implementation */
unicode_freelist = NULL;