summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java b/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java
index 96fdd0490c..a73177abb1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java
@@ -176,12 +176,12 @@ static boolean isLoadable () {
} catch (MalformedURLException e) {
/* should never happen since url's initial path value must be valid */
}
- String path = url.getPath ();
- int index = path.indexOf ('!');
- File file = new File (path.substring (0, index));
Attributes attributes = null;
try {
+ String path = URLDecoder.decode(url.getPath (), "UTF-8");
+ int index = path.indexOf ('!');
+ File file = new File (path.substring (0, index));
JarFile jar = new JarFile (file);
attributes = jar.getManifest ().getMainAttributes ();
} catch (IOException e) {