diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-03-19 00:35:36 (GMT) |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-03-19 00:35:36 (GMT) |
commit | 5ddd4c3f77abe9282479d901696dfa73e6c3d573 (patch) | |
tree | 1a36a11befd6fd5d1dc8a689a2cb39d2de487357 /Python/pythonrun.c | |
parent | 821a0fc140762c281b10dea4bb8676e913007270 (diff) | |
download | cpython-5ddd4c3f77abe9282479d901696dfa73e6c3d573.zip cpython-5ddd4c3f77abe9282479d901696dfa73e6c3d573.tar.gz cpython-5ddd4c3f77abe9282479d901696dfa73e6c3d573.tar.bz2 |
Fixed SF bug #663074. The codec system was using global static
variables to store internal data. As a result, any atempts to use the
unicode system with multiple active interpreters, or successive
interpreter executions, would fail.
Now that information is stored into members of the PyInterpreterState
structure.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b82d77e..32b3024 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -49,8 +49,6 @@ static void call_sys_exitfunc(void); static void call_ll_exitfuncs(void); extern void _PyUnicode_Init(void); extern void _PyUnicode_Fini(void); -extern void _PyCodecRegistry_Init(void); -extern void _PyCodecRegistry_Fini(void); int Py_DebugFlag; /* Needed by parser.c */ int Py_VerboseFlag; /* Needed by import.c */ @@ -144,9 +142,6 @@ Py_Initialize(void) if (interp->modules == NULL) Py_FatalError("Py_Initialize: can't make modules dictionary"); - /* Init codec registry */ - _PyCodecRegistry_Init(); - #ifdef Py_USING_UNICODE /* Init Unicode implementation; relies on the codec registry */ _PyUnicode_Init(); @@ -257,9 +252,6 @@ Py_Finalize(void) /* Disable signal handling */ PyOS_FiniInterrupts(); - /* Cleanup Codec registry */ - _PyCodecRegistry_Fini(); - /* drop module references we saved */ Py_XDECREF(PyModule_WarningsModule); PyModule_WarningsModule = NULL; |