| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
As the spec says, if the result from magic sniffing doesn't
match one of the globs, ignore it and return one of the globs.
With this change, test-garbage.key (which was already a doubtful
testcase, see !5) no longer falls back to application/octet-stream
but to one of the globs.
test-really-html-not-xhtml.html is also fixed by this,
it's detected as text/html.
Closes: #138.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The meson pkgconfig generator was, in some circumstances, adding
architecture-specific Cflags and libdir/includedir to the pkgconfig
file. Since the pkgconfig file is installed in an
architecture-independent path (e.g. /usr/share/pkgconfig) this was
causing problems with cross-compile builds or builds on
multilib/multiarch systems.
The extra variables could be avoided by setting the "dataonly" option on
the pkgconfig generator, but that causes the "prefix" variable to also
be removed. I took a quick check and didn't see anything that used this
variable... but there could be something I missed.
So, in the interests of fixing the issue while preserving compatibility
with the old autotools build, I've adjusted the meson build to use the
pkgconfig template which was leftover from the autotools build system.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to mikmod, the tempo table is 128 bytes containing values
ranging from 1 to 32, inclusive. We don't have good means to test all
those 128 bytes, but look into the last one to make it rule out some
short files. Also, accept 0 for the time being due to our match
expression limitations.
0-31 being ASCII control characters gives this a better chance to avoid
matching random ASCII files out there.
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
|
|
|
|
| |
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
|
|
|
|
|
|
|
| |
Refs
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
https://github.com/sezero/mikmod/blob/528ac65977222459f375af54f61933a1cb63c187/libmikmod/loaders/load_669.c#L91
https://github.com/Konstanty/libmodplug/blob/d7ba5efd5816696fba668a23194940f796d62b95/src/load_669.cpp#L48
|
| |
|
|
|
|
| |
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
|
|
|
|
|
|
|
| |
Its draft specification [1] calls for a "*.ktx2" glob and "image/ktx2" type
as it contains backwards-incompatible changes over version 1.
[1] http://github.khronos.org/KTX-Specification/
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Per ECMA 388 appendix E.1, OpenXPS docs must not use *.xps, and
vnd.ms-xpsdocument should be be used to identify OpenXPS docs. The types
are distinct top level ones in IANA, too.
Keep /xps with /vnd.ms-xpsdocument per
https://mailarchive.ietf.org/arch/msg/ietf-types/4uBulQrWj9uBBwWgw-LKaopgi58/
|
|
|
|
| |
Intended for manual maintainer use at least for now.
|
| |
|
|
|
|
| |
The former is the IANA registered type.
|
|
|
|
| |
The former is the IANA registered type.
|
|
|
|
| |
The former is the IANA registered type.
|
|
|
|
|
| |
The latter is deprecated per
https://www.iana.org/assignments/media-types/application/vnd.apple.keynote
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
No non-POSIX bashism features are used in this shell script.
|
|
|
|
| |
Adaptive Scalable Texture Compression files
|
| |
|
|
|
|
|
| |
According to https://3dbrew.org/wiki/3DSX_Format, they start from '3DSX'
magic value and have .3dsx extension.
|
|
|
|
|
|
|
| |
Nintendo 3DS ROMs can have *.3ds or *.cci extensions.
According to https://3dbrew.org/wiki/CCI, they have 'NCSD' magic number at
0x100 offset.
|
|
|
|
|
| |
The next commit will add another MIME type with the same glob, avoid
breakage.
|
| |
|
|
|
|
|
| |
I've never seen such a file format, ever, the Dreamcast scene only uses
files like .gdi and .cdi, sometimes .chd and .iso, but never .dc.
|
|
|
|
| |
For use with the Kaitai Struct visualiser, or any text/YAML editors
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Latest AVIF specification draft removed definition of image/avif-sequence mime type,
so instead of two mime types (image/avif and image/avif-sequence)
only one image/avif will be used in future.
|
|
|
|
| |
Closes: #140
|
|
|
|
|
|
|
|
|
|
|
| |
PIE executables have the same header as ELF shared libs and therefore
were being detected as shared libraries.
The magic for executables was too specific, I removed the check
for the value at offset 16 since it's actually 3 for /usr/bin/ls, not 2.
Fixes gitlab issue #11.
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
|
| |
|
| |
|
|
|
|
|
|
|
| |
Apples "system_profiler" can save information about the machine in
XML format and uses the *.spx extension.
Fixes #105.
|
|
|
|
|
|
|
|
|
|
| |
According to http://trac.musepack.net/musepack/wiki/SV8Specification,
the file starts with a 'MPCK' magic.
Currently, only the SV7 magic, 'MP+' is recognized:
http://trac.musepack.net/musepack/wiki/SV7Specification.
Fixes #104.
|