[Python-3000-checkins] r59845 - python/branches/py3k/Include/unicodeobject.h
christian.heimes
python-3000-checkins at python.org
Mon Jan 7 22:04:22 CET 2008
Author: christian.heimes
Date: Mon Jan 7 22:04:21 2008
New Revision: 59845
Modified:
python/branches/py3k/Include/unicodeobject.h
Log:
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
Modified: python/branches/py3k/Include/unicodeobject.h
==============================================================================
--- python/branches/py3k/Include/unicodeobject.h (original)
+++ python/branches/py3k/Include/unicodeobject.h Mon Jan 7 22:04:21 2008
@@ -58,6 +58,9 @@
/* --- 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 at pythonware.com */
More information about the Python-3000-checkins
mailing list