commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [compress] ZIP - encoding of file names - again
Date Thu, 19 Feb 2009 17:09:06 GMT
On 2009-02-18, Stefan Bodewig <bodewig@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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message