List Archive


Thread Index


From: Andreas Falkenhahn <>
To: libzip mailing list <>
Subject: zip_set_file_compression() default compression level
Date: Sat, 11 Nov 2017 14:46:26 +0100

I think the manpage of zip_set_file_compression() level should mention
that it's possible to pass 0 in the flags parameter to use the default
compression level for the respective method. With deflate 0 seems to
be mapped to Z_BEST_COMPRESSION and with bzip2 0 seems to be mapped to

Currently, the manpage of zip_set_file_compression() says that
"Allowed values are 1-9, other values are undefined". It should mention
that it's also possible to pass 0 to use the compressor's default
compression level.

Best regards,
 Andreas Falkenhahn                 

Made by MHonArc.