From 545ff63ab763c8bb5b4a1b2f0aa98e8526518a07 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 23 Feb 2009 13:12:16 +0000 Subject: [PATCH] use the desired encoding to decode git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@747002 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/zip/ZipFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/zip/ZipFile.java b/src/main/org/apache/tools/zip/ZipFile.java index 5c551c1f2..e17184480 100644 --- a/src/main/org/apache/tools/zip/ZipFile.java +++ b/src/main/org/apache/tools/zip/ZipFile.java @@ -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