summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-06-26 17:17:07 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-06-26 17:17:07 (GMT)
commit1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e (patch)
tree5ba823af8075f10fdf12cf3657041324d73ff342 /Objects/unicodeobject.c
parent45714e9ecb97c53254d644ecee00d66d36a21449 (diff)
downloadcpython-1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e.zip
cpython-1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e.tar.gz
cpython-1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e.tar.bz2
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)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index c62f65b..742c770 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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;