Mime types - uppercase appearing in mime type names
thomas at kluyver.me.uk
Fri Mar 15 15:11:47 PDT 2013
Almost all Mime types are named in lower case, e.g. image/png. However,
there are a handful of MS office file formats that the
freedesktop.orgdatabase uses the word 'macroEnabled', e.g.
The same type is also defined by LibreOffice, but in lowercase, i.e.
I also see uppercase in audio/AMR, audio/AMR-WB and text/x-iMelody.
RFC 2045  says "The type, subtype, and parameter names are not case
sensitive." I can flatten the case easily enough, but looking up the
MEDIA/SUBTYPE.xml files on a case-sensitive filesystem gets tricky - I
would have to keep a reference to the original spelling, just for those few
To simplify this, I think the shared mime-info spec should say that the
media/subtype.xml files are always named in lowercase. Since the names are
supposed to be case insensitive, it shouldn't create conflicts.
update-mime-database should also merge mimetypes regardless of case - at
present, I see separate media/subtype.xml files for the 'macroEnabled' and
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xdg