On 2009-02-18, Stefan Bodewig <bode...@apache.org> wrote:

> UTF-8 is now the default for ZipArchiveOutputStream and ZipFile, EFS
> support is not yet in.

Now it is.  I combined Wolfgang's patch for EFS with one by TAMURA
Kent to Ant https://issues.apache.org/bugzilla/show_bug.cgi?id=45548
and shuffled a bit of code around in addition.

Tests are in the work, manual tests look OK and I guess the more
extensive tests in Ant will tell me what I've broken.

So now ZipArchiveOutputStream writes UTF8 by default (like
java.util.zip) but also sets the EFS flag.  The EFS flag can be
disabled.

ZipFile detects the EFS flag and automatically parses file names as
UTF8 if it is set.

The only remaining missing piece now is ZipFile recognizing the
InfoZIP extra fields if no EFS-Flag is there and
ZipArchiceOutputStream optionally creating them.

And documentation, of course.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to