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


--ReaqsoxgOBHFXBhH
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
>=20
> 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.
>=20
> 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 ?
--=20
=B7O=B7  Pierre Habouzit
=B7=B7O
OOO                                                http://www.madism.org

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCP+pHvGr7W6HudhwRAn0sAJ9+YB9ztUvyXx76/EvosGPvveS71wCcDm65
+MRn9idZcF/KKrpUjXLyXfI=
=soff
-----END PGP SIGNATURE-----

--ReaqsoxgOBHFXBhH--