Conflicting mime types
Bastien Nocera
hadess at hadess.net
Tue Mar 5 04:43:08 PST 2013
On Tue, 2013-03-05 at 11:58 +0000, Jerome Leclanche wrote:
> Are they valid PNGs?
They're not.
> If so, it sounds like the mime type should just be a child of
> image/png and drop the glob here.
>
> J. Leclanche
>
>
> On Tue, Mar 5, 2013 at 11:29 AM, Thomas Kluyver <thomas at kluyver.me.uk>
> wrote:
> I've just had a bug reported against PyXDG that a Mimetype
> test is returning image/x-apple-ios-png instead of image/png.
>
>
> Looking at the XML mime type definitions [0], this new mime
> type ('Apple broken PNGs') has the same glob as regular pngs:
> *.png. They can be distinguished by magic sniffing, but the
> test in question is specifically for when only a filename is
> available.
>
>
> Obviously, a filename like foo.png should be presumed to be
> image/png over image/x-apple-ios-png. But how should this be
> done? Should we prefer mimetypes without the x- prefix? Could
> there be a collision between two mimetypes neither of which
> have an x-? Is there some other heuristic we can use?
>
> [0]
> http://cgit.freedesktop.org/xdg/shared-mime-info/commit/freedesktop.org.xml.in?id=afbdfb40a3ff8c255e5d3dab8840cc478a007d45
>
>
> Thanks,
> Thomas
>
>
>
>
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg
>
>
>
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg
More information about the xdg
mailing list