From: <no...@so...> - 2002-04-29 15:03:00
|
Bugs item #550200, was opened at 2002-04-29 15:03 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=550200&group_id=12867 Category: Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Griffiths (dgriff) Assigned to: Nobody/Anonymous (nobody) Summary: Jython doesn't work on ebcdic platforms Initial Comment: I copied jython.jar to our z/OS machine and typed java -classpath jython.jar org.python.util.jython and this is what happened: Jython 2.1 on java1.3.1 (JIT: jitc) Traceback (innermost last): (no code object) at line 0 File "<string>", line 1 ▬ZZ ^ SyntaxError: Lexical error at line 1, column 1. Encountered: "\u0016" (22), after : "" Luckily there is a simple fix. Just change all references to the deprecated StringBufferInputStream to use ByteArrayInputStream instead. This is in parser.java and Py.java. There are only four such uses. Here is an example: //node = parse(new StringBufferInputStream(string), node = parse(new ByteArrayInputStream(string.getBytes ()), After I made that change it worked (at least I now have a command line prompt and basic commands seem to work, I haven't done any serious testing yet). Cheers, Dave ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=550200&group_id=12867 |