diff options
| author | John Leuner <jewel@pixie.co.za> | 2002-05-30 18:50:40 +0000 |
|---|---|---|
| committer | John Leuner <jewel@pixie.co.za> | 2002-05-30 18:50:40 +0000 |
| commit | be784d5fd3902e5b365605fbdac7182ed4dab7e8 (patch) | |
| tree | 03b2c3570c3b84c2d3a350d63c75d496e8634291 /java/util/zip/ZipFile.java | |
| parent | cbe5e9b4dc626e1e15af397c4c62bfecb3e828f2 (diff) | |
| download | classpath-be784d5fd3902e5b365605fbdac7182ed4dab7e8.tar.gz | |
java/util/zip/*java: Changed to use default character
encoding instead of UTF8 for zip comments.
lib/jazzlib/makeJazzlibDist.sh: Changed to use zsh.
Builds .zip and .jar files too.
Diffstat (limited to 'java/util/zip/ZipFile.java')
| -rw-r--r-- | java/util/zip/ZipFile.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/util/zip/ZipFile.java b/java/util/zip/ZipFile.java index e532a2b0f..6dbed7cda 100644 --- a/java/util/zip/ZipFile.java +++ b/java/util/zip/ZipFile.java @@ -198,7 +198,7 @@ public class ZipFile implements ZipConstants byte[] buffer = new byte[Math.max(nameLen, commentLen)]; raf.readFully(buffer, 0, nameLen); - String name = new String(buffer, 0, nameLen, "UTF8"); + String name = new String(buffer, 0, nameLen); ZipEntry entry = new ZipEntry(name); entry.setMethod(method); @@ -215,7 +215,7 @@ public class ZipFile implements ZipConstants if (commentLen > 0) { raf.readFully(buffer, 0, commentLen); - entry.setComment(new String(buffer, 0, commentLen, "UTF8")); + entry.setComment(new String(buffer, 0, commentLen)); } entry.zipFileIndex = i; entry.offset = offset; |
