Patch: plugin/gzip.vim, maintain compression levels

jamessan@jamessan.com jamessan@jamessan.com
Mon, 16 May 2005 13:39:18 -0400


--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

On Mon, May 16, 2005 at 05:11:42PM +0200, Bram Moolenaar wrote:
> <snip patch description>
>
> Using an external command is a weird solution, the text is right there
> in the Vim buffer.  You can use Vim commands to get the byte.

Very true.  I had been using od to inspect the gzip files and didn't
think of that.  I can rework the patch to use the text in the buffer.

> What gzip documentation specifies the use of these bytes?  Is it
> portable over different systems?

I used RFC1952 (http://www.faqs.org/rfcs/rfc1952.html) as a reference.
One of the RFC's stated purposes is that gzip "is independent of CPU
type, operating system, file system, and character set, and hence can be
used for interchange."  So, there shouldn't be any portability problems.

James
--
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan@jamessan.com>

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

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

iEYEARECAAYFAkKI2sUACgkQDb3UpmEybUBgUgCggrju2HTPqQAsHtzrnWcYfpIe
U28AoJWPC9cqyg3pS8KOSGfwm05fFz8X
=QVx+
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--