Index: org/openoffice/configuration/FileHelper.java =================================================================== RCS file: /cvs/util/officecfg/org/openoffice/configuration/FileHelper.java,v retrieving revision 1.3 diff -u -r1.3 FileHelper.java --- org/openoffice/configuration/FileHelper.java 16 Mar 2006 11:12:44 -0000 1.3 +++ org/openoffice/configuration/FileHelper.java 21 Mar 2006 16:06:22 -0000 @@ -62,8 +62,12 @@ File aFile = new File(sSource); try { - absPath = "file://" + sSource.replace('\\','/'); - + absPath = aFile.toURL().toString(); + // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6351751 + if (absPath.substring(0, 5) == "file:" && absPath.substring(5, 7) != "//") + absPath = "file://" + absPath.substring(5, absPath.length()); + if (absPath.charAt(absPath.length()-1) == '/') + absPath = absPath.substring(0, absPath.length()-1); } catch (Exception e) { e.printStackTrace();