diff Python/pystate.c @ 69708:2caf82aee7a4 3.2

Issue #10914: Initialize correctly the filesystem codec when creating a new subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec. Add fscodec_initialized attribute to the PyInterpreterState structure.
author Victor Stinner <victor.stinner@haypocalc.com>
date Wed, 27 Apr 2011 00:24:21 +0200
parents 7b7ad9a88451
children 608975eafe86 ce859b848879
line wrap: on
line diff
--- a/Python/pystate.c	Wed Apr 27 00:20:27 2011 +0200
+++ b/Python/pystate.c	Wed Apr 27 00:24:21 2011 +0200
@@ -79,6 +79,7 @@
         interp->codec_search_cache = NULL;
         interp->codec_error_registry = NULL;
         interp->codecs_initialized = 0;
+        interp->fscodec_initialized = 0;
 #ifdef HAVE_DLOPEN
 #ifdef RTLD_NOW
         interp->dlopenflags = RTLD_NOW;