diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-07 21:04:21 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-07 21:04:21 (GMT) |
commit | 0625e89771e17e3ed5ca1fb37e0fdc9224fc5a2a (patch) | |
tree | a1ebffca9d8cbcec364d9ccba9dc6532e9b1e099 /Include | |
parent | 3b06e5378ae21572a024b6484176b9678100ee53 (diff) | |
download | cpython-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.h | 3 |
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 */ |