#755971 gzip: zcmp fails on .svgz files

Package:
gzip
Source:
gzip
Description:
GNU compression utilities
Submitter:
Vincent Lefevre
Date:
2014-07-25 08:39:04 UTC
Severity:
normal
#755971#5
Date:
2014-07-24 22:44:27 UTC
From:
To:
zcmp fails on .svgz files. I suspect that zcmp doesn't recognized
the .svgz extension, though rather common. The zcmp(1) man page
doesn't require anything about the extension, and zcmp should behave
as documented.

To reproduce:

$ echo foo > file
$ gzip file
$ cp file.gz file.svgz
$ cmp file.gz file.svgz
$ zcmp file.gz file.svgz
- file.svgz differ: char 1, line 1

#755971#10
Date:
2014-07-25 03:57:38 UTC
From:
To:
Vincent Lefevre <vincent@vinc17.net> writes:

I've never seen a .svgz extension.  What's it supposed to mean?

Bdale

#755971#15
Date:
2014-07-25 08:35:25 UTC
From:
To:
gzipped SVG. There are more than 1 million matches of "svgz"
on Google, and it's in Debian's /etc/mime.types file:

image/svg+xml                                   svg svgz

and it's referenced by Wikipedia:

https://en.wikipedia.org/wiki/Scalable_Vector_Graphics

(see infobox).