I'm not really a Java dev, but I took some time to test the output of both java.util.zip.ZipOutputStream and org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream. I used both to zip a file named 'õäöü.txt' and then tried to unzip it with the default application, i.e. whatever runs from context menu, on Windows 7 and Manjaro 0.8.10

Archive created with ZipOutputStream had a mangled file name when unzipped on both Windows and Linux. The same was true for ZipArchiveOutputStream when using only the default options. But by setting additional flags as described at http://info.michael-simons.eu/2010/01/05/create-zip-archives-containing-unicode-filenames-with-java/ the archive produced became readable on Linux. Even though it does not help me with my Windows problem, I consider this preferrable to current behavior.

Usage of ZipArchiveOutputStream would also allow to add a (maybe job specific) configuration option for setting zip archive encoding for those poor souls stuck on Windows.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to