Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0625e89

Browse files
committed
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
1 parent 3b06e53 commit 0625e89

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Include/unicodeobject.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Copyright (c) Corporation for National Research Initiatives.
5858

5959
/* --- Internal Unicode Format -------------------------------------------- */
6060

61+
/* Python 3.x requires unicode */
62+
#define Py_USING_UNICODE
63+
6164
/* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is
6265
properly set, but the default rules below doesn't set it. I'll
6366
sort this out some other day -- [email protected] */

0 commit comments

Comments
 (0)