From f2eb856ffd6a3d7e56325de287b73850e65cd84b Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Thu, 3 Jul 2003 13:02:01 +0000
Subject: [PATCH] Add support for filename-encodings other than UTF8 to
.
PR: 10504
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274746 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 4 ++++
docs/manual/CoreTasks/unzip.html | 22 +++++++++++++----
src/etc/testcases/taskdefs/untar.xml | 3 +++
src/etc/testcases/taskdefs/unzip.xml | 9 +++++++
.../org/apache/tools/ant/taskdefs/Expand.java | 24 +++++++++++++++----
.../org/apache/tools/ant/taskdefs/Untar.java | 13 +++++++++-
.../apache/tools/ant/taskdefs/UntarTest.java | 14 +++++++----
.../apache/tools/ant/taskdefs/UnzipTest.java | 9 +++++++
8 files changed, 85 insertions(+), 13 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index da6d95c0f..fa5575b68 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -453,6 +453,10 @@ Other changes:
* FileUtils#createTempFile will now create temporary files in the
directory pointed to by the property java.io.tmpdir
+* and friends now supports an optional encoding attribute to
+ enable it to expand archives created with filenames using an encoding
+ other than UTF8. Bugzilla Report 10504.
+
Changes from Ant 1.5.2 to Ant 1.5.3
===================================
diff --git a/docs/manual/CoreTasks/unzip.html b/docs/manual/CoreTasks/unzip.html
index 6433dc4e3..0dc4f95b9 100644
--- a/docs/manual/CoreTasks/unzip.html
+++ b/docs/manual/CoreTasks/unzip.html
@@ -46,11 +46,25 @@ to perform unarchival upon.
compression |
- compression method for untar. Allowable values are
- "none", "gzip" and "bzip2". Default is
- "none". |
+ Note: This attribute is only available for
+ the untar task.
+ compression method. Allowable values are "none",
+ "gzip" and "bzip2". Default is
+ "none". |
No |
+
+ encoding |
+ Note: This attribute is not available for
+ the untar task.
+ The character encoding that has been used for filenames
+ inside the zip file. For a list of possible values see http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html.
+ Defaults to "UTF8", use the magic value
+ native-encoding for the platform's default character
+ encoding. |
+ No |
+
Examples
@@ -89,7 +103,7 @@ to perform unarchival upon.
-Copyright © 2000-2002 Apache Software Foundation. All rights
+
Copyright © 2000-2003 Apache Software Foundation. All rights
Reserved.