summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-27 00:24:21 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-27 00:24:21 +0200
commitaa039cee1babca74cc172aae2886c7c2da30ea8d (patch)
tree79a31c0035382f1092945e95006d0ca45bb32a0e /Python/pystate.c
parent0ed611ee5df5214a93916fed71b8804b966570c5 (diff)
downloadcpython-aa039cee1babca74cc172aae2886c7c2da30ea8d.tar.gz
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 586b856603..b347c41c54 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;