[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#530253: Compressed svg should be named .svgz (not .svg.gz)



Package: debhelper
Version: 7.2.8
Severity: normal

Hello,

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.

Note to developpers:
  There is no need to "dh_compress --exclude=.svg"

Regards,

Franklin

[1] http://www.w3.org/TR/SVG11/intro.html#SVGMIMEType
[2] /usr/share/mime/packages/freedesktop.org.xml:
>   <mime-type type="image/svg+xml-compressed">
>    <comment>compressed SVG image</comment>
>  [..]
>    <acronym>SVG</acronym>
>    <expanded-acronym>Scalable Vector Graphics</expanded-acronym>
>    <sub-class-of type="application/x-gzip"/>
>    <glob pattern="*.svgz"/>
>  </mime-type>

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils                      2.19.1-1   The GNU assembler, linker and bina
ii  dpkg-dev                      1.14.26    Debian package development tools
ii  file                          5.03-1     Determines file type using "magic"
ii  html2text                     1.3.2a-14  advanced HTML to text converter
ii  man-db                        2.5.5-1    on-line manual pager
ii  perl                          5.10.0-22  Larry Wall's Practical Extraction 
ii  po-debconf                    1.0.16     tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make                       <none>     (no description available)

-- no debconf information



Reply to: