diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-26 22:24:21 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-26 22:24:21 (GMT) |
commit | 3cbf14bfb11ce1f7f94a2a8e69161a621a200a5d (patch) | |
tree | c37a2c102c11824fd902e0cc602af1b81ca53ddc /Python/pystate.c | |
parent | 1188935af9ff5b762c6b1eaacb1dffdf0208bb40 (diff) | |
download | cpython-3cbf14bfb11ce1f7f94a2a8e69161a621a200a5d.zip cpython-3cbf14bfb11ce1f7f94a2a8e69161a621a200a5d.tar.gz cpython-3cbf14bfb11ce1f7f94a2a8e69161a621a200a5d.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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 586b856..b347c41 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; |