From: Finn B. <bc...@us...> - 2001-07-20 13:37:47
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv18201/core Modified Files: parser.java Log Message: Fix for bug: [ #439688 ] Syntax error for non-ascii characters It involves replacing the broken ASCII_CharStream with a CharStrem which return the whole chars unmodified. ASCII_CharStream cuts away the top 8-bits of each char. Index: parser.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/parser.java,v retrieving revision 2.9 retrieving revision 2.10 diff -C2 -r2.9 -r2.10 *** parser.java 2001/05/15 18:53:35 2.9 --- parser.java 2001/07/20 13:37:43 2.10 *************** *** 96,100 **** } catch (IOException exc) { } ! PythonGrammar g = new PythonGrammar(bufreader); SimpleNode node = null; try { --- 96,100 ---- } catch (IOException exc) { } ! PythonGrammar g = new PythonGrammar(new ReaderCharStream(bufreader)); SimpleNode node = null; try { |