From: SourceForge.net <no...@so...> - 2005-03-08 16:23:11
|
Bugs item #1159156, was opened at 2005-03-08 16:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1159156&group_id=12867 Category: Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: kersam (kersam) Assigned to: Nobody/Anonymous (nobody) Summary: codec.open() does not work with different systemstates Initial Comment: I have a Java -Applications that starts different Python- Interpreters with different System-States: PythonInterpreter pi = new PythonInterpreter(null, new PySystemState()); pi.exec("import codecs"); pi.exec("f = codecs.open(\Test.java\,\rb\, \cp1252\)") ; pi.exec("print f.readline()"); pi.cleanup(); pi = new PythonInterpreter(null, new PySystemState()); pi.exec("import codecs"); pi.exec("f = codecs.open(\Test.java\,\rb\, \cp437\)"); pi.exec("print f.readline()"); pi.cleanup(); The second codec.open() fails with: LookupError: unknown encoding cp437 If you debug the application, you see that the application fails calling the PyFunction registered in org.python.core. codecs. Is this because the function was registred with a different system state? Are mutiple systeme states in the same application supported? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1159156&group_id=12867 |
From: SourceForge.net <no...@so...> - 2006-05-11 19:18:02
|
Bugs item #1159156, was opened at 2005-03-08 16:23 Message generated for change (Settings changed) made by fwierzbicki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1159156&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library >Group: Deferred Status: Open Resolution: None Priority: 5 Submitted By: kersam (kersam) Assigned to: Nobody/Anonymous (nobody) Summary: codec.open() does not work with different systemstates Initial Comment: I have a Java -Applications that starts different Python- Interpreters with different System-States: PythonInterpreter pi = new PythonInterpreter(null, new PySystemState()); pi.exec("import codecs"); pi.exec("f = codecs.open(\"Test.java\",\"rb\", \"cp1252\")") ; pi.exec("print f.readline()"); pi.cleanup(); pi = new PythonInterpreter(null, new PySystemState()); pi.exec("import codecs"); pi.exec("f = codecs.open(\"Test.java\",\"rb\", \"cp437\")"); pi.exec("print f.readline()"); pi.cleanup(); The second codec.open() fails with: LookupError: unknown encoding cp437 If you debug the application, you see that the application fails calling the PyFunction registered in org.python.core. codecs. Is this because the function was registred with a different system state? Are mutiple systeme states in the same application supported? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1159156&group_id=12867 |
From: SourceForge.net <no...@so...> - 2006-05-11 20:01:38
|
Bugs item #1159156, was opened at 2005-03-08 16:23 Message generated for change (Settings changed) made by fwierzbicki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1159156&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library Group: Deferred Status: Open Resolution: None >Priority: 4 Submitted By: kersam (kersam) Assigned to: Nobody/Anonymous (nobody) Summary: codec.open() does not work with different systemstates Initial Comment: I have a Java -Applications that starts different Python- Interpreters with different System-States: PythonInterpreter pi = new PythonInterpreter(null, new PySystemState()); pi.exec("import codecs"); pi.exec("f = codecs.open(\"Test.java\",\"rb\", \"cp1252\")") ; pi.exec("print f.readline()"); pi.cleanup(); pi = new PythonInterpreter(null, new PySystemState()); pi.exec("import codecs"); pi.exec("f = codecs.open(\"Test.java\",\"rb\", \"cp437\")"); pi.exec("print f.readline()"); pi.cleanup(); The second codec.open() fails with: LookupError: unknown encoding cp437 If you debug the application, you see that the application fails calling the PyFunction registered in org.python.core. codecs. Is this because the function was registred with a different system state? Are mutiple systeme states in the same application supported? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1159156&group_id=12867 |