commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [compress] ZIP - encoding of file names - again
Date Thu, 19 Feb 2009 17:09:06 GMT
On 2009-02-18, Stefan Bodewig <> 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
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 but also sets the EFS flag.  The EFS flag can be

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message