From: Christian Heimes Date: Mon, 7 Jan 2008 21:04:21 +0000 (+0000) Subject: Always define Py_USING_UNICODE, 3rd party software may depend on it. A missing declar... X-Git-Tag: v3.0a3~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0625e89771e17e3ed5ca1fb37e0fdc9224fc5a2a;p=python 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 --- diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 8a4e6a2acf..106228d755 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 */