RFR: 4890732: GZIPOutputStream doesn't support, in fact thwarts, use of optional GZIP fields [v3]

Lin Zang lzang at openjdk.java.net
Fri Mar 26 02:46:25 UTC 2021


On Mon, 22 Mar 2021 20:15:38 GMT, Lance Andersen <lancea at openjdk.org> wrote:

> on operating systems using
>         EBCDIC or any other character set for file names, the name
>         must be translated to the ISO LATIN-1 character set.  This
>         is the original name of the file being compressed, with any
>         directory components removed, and, if the file being
>         compressed is on a file system with case insensitive names,
>         forced to lower case. There is no original file name if the
>         data was compressed from a source other than a named file;
>         for example, if the source was stdin on a Unix system, there
>         is no file name.

IMHO, this looks much like the rule that user should take care of,  I think here we only need to accept a String and decode it with "ISO-8859-1" to byte array then write to the header.  Is this reasonable?

-------------

PR: https://git.openjdk.java.net/jdk/pull/3072


More information about the core-libs-dev mailing list