Very partial patches to build Python3.
[fedora-mingw.git] / python3 / mingw32-python-3.1-lc_ctype.patch
diff --git a/python3/mingw32-python-3.1-lc_ctype.patch b/python3/mingw32-python-3.1-lc_ctype.patch
new file mode 100644 (file)
index 0000000..978a43d
--- /dev/null
@@ -0,0 +1,13 @@
+Index: Python/pythonrun.c
+===================================================================
+--- Python/pythonrun.c (revision 67686)
++++ Python/pythonrun.c (working copy)
+@@ -173,7 +173,7 @@
+               return;
+       initialized = 1;
+-#ifdef HAVE_SETLOCALE
++#if defined(HAVE_SETLOCALE) && defined(LC_CTYPE)
+       /* Set up the LC_CTYPE locale, so we can obtain
+          the locale's charset without having to switch
+          locales. */