[Python-bugs-list] [ python-Bugs-663074 ] codec registry and Python embedding problem
SourceForge.net
noreply@sourceforge.net
Mon, 06 Jan 2003 04:17:28 -0800
Bugs item #663074, was opened at 2003-01-06 13:17
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=663074&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: M.-A. Lemburg (lemburg)
Assigned to: M.-A. Lemburg (lemburg)
Summary: codec registry and Python embedding problem
Initial Comment:
Found by Hartmut Ring:
#include <Python.h>
int main() {
for (int i=0; i<2; i++) {
Py_Initialize();
PyRun_SimpleString("a = u'\xe4'.encode('Latin-1')");
Py_Finalize();
}
return 0;
}
First try runs fine, second try gives:
Traceback (most recent call last):
File "<string>", line 1, in ?
LookupError: no codec search functions registered:
can't find encoding
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=663074&group_id=5470