Browse Source

use the desired encoding to decode

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@747002 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
545ff63ab7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/zip/ZipFile.java

+ 1
- 1
src/main/org/apache/tools/zip/ZipFile.java View File

@@ -551,7 +551,7 @@ public class ZipFile {
return new String(bytes);
} else {
try {
return ZipEncodingHelper.decodeName(bytes, encoding);
return ZipEncodingHelper.decodeName(bytes, enc);
} catch (java.nio.charset.UnsupportedCharsetException ex) {
// Java 1.4's NIO doesn't recognize a few names that
// String.getBytes does


Loading…
Cancel
Save