From: Wolfgang M. M. <wol...@us...> - 2004-09-12 13:12:43
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4679/src/org/exist/xquery Modified Files: XQueryContext.java Log Message: Replaced all occurrences of new URI(file.toURL().toString()).toASCIIString(); to file.toURI().toASCIIString(); (patch by Piotr). Index: XQueryContext.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/XQueryContext.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** XQueryContext.java 12 Sep 2004 09:25:14 -0000 1.23 --- XQueryContext.java 12 Sep 2004 13:12:23 -0000 1.24 *************** *** 815,822 **** throw new XPathException("cannot read module source from file at " + f.getAbsolutePath()); } ! try { ! location = new URI(f.toURL().toString()).toASCIIString(); ! } catch (Exception e1) { ! } } LOG.debug("Loading module from " + location); --- 815,819 ---- throw new XPathException("cannot read module source from file at " + f.getAbsolutePath()); } ! location = f.toURI().toASCIIString(); } LOG.debug("Loading module from " + location); |