From: <bc...@wo...> - 2001-05-28 19:39:09
|
[me] >Index: org/python/core/imp.java >=================================================================== >RCS file: /cvsroot/jython/jython/org/python/core/imp.java,v >retrieving revision 2.42 >... >+ >+ private static boolean caseok(File file, String filename) { >+ if (Options.caseok) >+ return true; >+ try { >+ return filename.equals(file.getCanonicalFile().getName()); Duh. The line above doesn't work on jdk1.1. It should instead be: File canFile = new File(file.getCanonicalPath()); return filename.equals(canFile.getName()); >+ } catch (IOException exc) { >+ return false; >+ } > } regards, finn |