diff Python/pythonrun.c @ 22883:d8bc68cb17e0 legacy-trunk

Move Unicode finalization further down in the chain. Fixes bug #525620.
author Marc-André Lemburg <mal@egenix.com>
date Mon, 08 Apr 2002 08:19:36 +0000
parents 253de588f2fb
children e2848618bd19
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Apr 08 05:22:30 2002 +0000
+++ b/Python/pythonrun.c	Mon Apr 08 08:19:36 2002 +0000
@@ -219,11 +219,6 @@
 	/* Disable signal handling */
 	PyOS_FiniInterrupts();
 
-#ifdef Py_USING_UNICODE
-	/* Cleanup Unicode implementation */
-	_PyUnicode_Fini();
-#endif
-
 	/* Cleanup Codec registry */
 	_PyCodecRegistry_Fini();
 
@@ -268,6 +263,11 @@
 	PyInt_Fini();
 	PyFloat_Fini();
 
+#ifdef Py_USING_UNICODE
+	/* Cleanup Unicode implementation */
+	_PyUnicode_Fini();
+#endif
+
 	/* XXX Still allocated:
 	   - various static ad-hoc pointers to interned strings
 	   - int and float free list blocks