Bug#280388: does not preserve gzip compression level when editing compressed files

Pierre HABOUZIT Pierre HABOUZIT <pierre.habouzit@m4x.org>, 280388@bugs.debian.org
Tue, 22 Mar 2005 10:49:59 +0100

Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 08, 2004 at 09:39:10PM -0500, Joey Hess wrote:
> Package: vim-common
> Version: 1:6.3-025+1
> Severity: wishlist
> I ram vim on a gzipped file and was suprised to see the file grow 10k.
> It turnes out the original was compressed with gzip -9 and when vim
> rewrote it after my edit, it used the default compression level.
> Since it is possible to see what compression level was used on a file
> when opening it, I think that it would be good for gzip.vim to record
> that and use the same compression level when writing it.

  that's right.  I confirm the bug

  but I cannnot find in gzip man page any way to find the level that was
used.  do you have any clue on how to achieve that ?
=B7O=B7  Pierre Habouzit
OOO                                                http://www.madism.org

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

Version: GnuPG v1.4.0 (GNU/Linux)