From: Finn B. <bc...@us...> - 2001-07-16 11:35:37
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv967 Modified Files: PyFile.java Log Message: seek(): When seeking relative use the logical filePosition, not the fysical filePointer. Fixes test300. Index: PyFile.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyFile.java,v retrieving revision 2.20 retrieving revision 2.21 diff -C2 -r2.20 -r2.21 *** PyFile.java 2001/07/16 10:57:21 2.20 --- PyFile.java 2001/07/16 11:35:34 2.21 *************** *** 421,425 **** public void seek(long pos, int how) throws java.io.IOException { if (how == 1) ! pos += file.getFilePointer(); else if (how == 2) pos += file.length(); --- 421,425 ---- public void seek(long pos, int how) throws java.io.IOException { if (how == 1) ! pos += filePosition; else if (how == 2) pos += file.length(); |