summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-07 21:04:21 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-07 21:04:21 (GMT)
commit0625e89771e17e3ed5ca1fb37e0fdc9224fc5a2a (patch)
treea1ebffca9d8cbcec364d9ccba9dc6532e9b1e099 /Include
parent3b06e5378ae21572a024b6484176b9678100ee53 (diff)
downloadcpython-0625e89771e17e3ed5ca1fb37e0fdc9224fc5a2a.zip
cpython-0625e89771e17e3ed5ca1fb37e0fdc9224fc5a2a.tar.gz
cpython-0625e89771e17e3ed5ca1fb37e0fdc9224fc5a2a.tar.bz2
Always define Py_USING_UNICODE, 3rd party software may depend on it. A missing declaration can lead to strange bugs as I had to learn the hard way in the upcoming merge
Diffstat (limited to 'Include')
-rw-r--r--Include/unicodeobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 8a4e6a2..106228d 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -58,6 +58,9 @@ Copyright (c) Corporation for National Research Initiatives.
/* --- Internal Unicode Format -------------------------------------------- */
+/* Python 3.x requires unicode */
+#define Py_USING_UNICODE
+
/* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is
properly set, but the default rules below doesn't set it. I'll
sort this out some other day -- fredrik@pythonware.com */