Patch #445762: Support --disable-unicode
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 10d6452..e776555 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -147,6 +147,7 @@
DLINCLDIR= @DLINCLDIR@
DYNLOADFILE= @DYNLOADFILE@
MACHDEP_OBJS= @MACHDEP_OBJS@
+UNICODE_OBJS= @UNICODE_OBJS@
PYTHON= python$(EXE)
@@ -263,8 +264,7 @@
Objects/stringobject.o \
Objects/tupleobject.o \
Objects/typeobject.o \
- Objects/unicodeobject.o \
- Objects/unicodectype.o
+ $(UNICODE_OBJS)
##########################################################################