*.svg and *.svgz files have "image/svg+xml" mime type, which is subclass of "application/xml", which is subclass of "text/plain", and this fools an innocent text editor which asks xdgmime whether given mime type is a subclass of text/plain to determine whether it's a text file. There should be a separate mime type like image/svg-comperessed or something (which would be subclass of application/x-gzip?). It may be that text/plain mime type is not intended to mean "text files", but then there is no way to deal with these svg files using xdgmime (and still be able to say that uncompressed svg is indeed a text file, xml).
2007-02-06 Bastien Nocera <hadess@hadess.net> * freedesktop.org.xml.in: compressed SVG files aren't XML files, so .svgz files now use image/svg as their mime-type (Closes: #9873)
2007-02-06 Bastien Nocera <hadess@hadess.net> * freedesktop.org.xml.in: Add a mime-type for XUL, add *.xbl as an XML pattern, as XBL doesn't have its own mime-type (Closes: #3260) Change the compressed SVG mime-type to image/svg+xml-compressed
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.