mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
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:
parent
45714e9ecb
commit
1294ad0c59
3 changed files with 25 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue