You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/02/23 14:12:17 UTC

svn commit: r747002 - /ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java

Author: bodewig
Date: Mon Feb 23 13:12:16 2009
New Revision: 747002

URL: http://svn.apache.org/viewvc?rev=747002&view=rev
Log:
use the desired encoding to decode

Modified:
    ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java

Modified: ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java?rev=747002&r1=747001&r2=747002&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java Mon Feb 23 13:12:16 2009
@@ -551,7 +551,7 @@
             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