On Tue, 2009-05-26 at 15:55 -0400, Joey Hess wrote: > Frank Lin PIAT wrote: > > According to SVG specifications[1] and freedesktop's mime database[2], > > the compressed .svg files should be named *.svgz (not .svg.gz) > > > > Files that are named *.svg.gz are identified as application/x-gzip > > instead of image/svg+xml-compressed. Therefore, those files are treated > > as an archive (wrong file association, wrong icon). > > > > I am opening the bug against debhelper because it will compress any > > svg in /usr/share/doc/*, but some .svg.gz might be provided by upstream. > > gunzip, however, cannot decompress .svgz files unless the file is renamed > or piped.
humm, I am not sure that gzip should be considered as the standard tool to use SVG files (the same way unzip isn't the standard tool to use with .odt and .jar files). So it doesn't really matter if it's handled properly, IMHO. Also .svgz is a standard format, so there is going to be some of them around... whether we like it or not. > It might be better for dh_compress to exclude .svg files from > compression, as it does for other images. It would certainly be simpler > than adding a special case extension. I had a look at dh_compress code. I couldn't find and easy and clean way to implement it (you would have received a patch ;) I believe there are probably not so many docs containing .svg files at the moment. Your idea to just exclude the .svg files from compression looks like an efficient way to solve the problem. Thanks, Franklin -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

