summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-26 22:24:21 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-26 22:24:21 (GMT)
commit793b531756a4752a167e29f53c4ff49ce2846c74 (patch)
tree30451bc81f557d0613390ea4a9b6b4298d15c9d3 /Python/pystate.c
parentc40a350db0f16c678273ee715fe7c70c431360a1 (diff)
downloadcpython-793b531756a4752a167e29f53c4ff49ce2846c74.zip
cpython-793b531756a4752a167e29f53c4ff49ce2846c74.tar.gz
cpython-793b531756a4752a167e29f53c4ff49ce2846c74.tar.bz2
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.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 922e9a3..65219eb 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -79,6 +79,7 @@ PyInterpreterState_New(void)
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;