diff --git a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java index 0101bc667377..24c3a9d3946f 100644 --- a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java +++ b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java @@ -2,9 +2,9 @@ * * $RCSfile: SVersionRCFile.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: toconnor $ $Date: 2002-11-26 16:07:27 $ + * last change: $Author: toconnor $ $Date: 2002-11-26 16:57:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -127,9 +127,15 @@ public class SVersionRCFile { String name = tokens.nextToken(); String path = tokens.nextToken(); - if (path.startsWith(FILE_URL_PREFIX) == true) + if (path.startsWith(FILE_URL_PREFIX) == true) { + path = java.net.URLDecoder.decode(path); + path = path.substring(FILE_URL_PREFIX.length()); + if (System.getProperty("os.name").startsWith("Windows")) + path = path.replace('/', File.separatorChar); + } + if (isValidPath(path) == true) versions.put(name, path); }