cvs diff Utilities.java (in directory P:\projects\nb_all\openide\src\org\openide\util\) Index: Utilities.java =================================================================== RCS file: /cvs/openide/src/org/openide/util/Utilities.java,v retrieving revision 1.136 diff -u -r1.136 Utilities.java --- Utilities.java 6 Sep 2003 16:03:55 -0000 1.136 +++ Utilities.java 17 Sep 2003 13:20:25 -0000 @@ -2503,9 +2503,13 @@ public static File toFile(URL u) { if (u == null) throw new NullPointerException(); try { - URI uri = new URI(u.toExternalForm()); + String s = u.toExternalForm(); + // URL-encoding spaces, see bug 36162 + s = s.replace(' ', '+'); + URI uri = new URI(s); return new File(uri); } catch (URISyntaxException use) { + ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, use); // malformed URL return null; } catch (IllegalArgumentException iae) { *****CVS exited normally with code 1*****