glib/gio/xdgmime
David Faure 1c177ce0ab xdgmime: Add better detection for text vs. binary and zero-sized files
This detects zero-sized files to return the special-case
"application/x-zerosize" mime-type, as well as trying to differentiate
unknown file types based on their first 128 bytes of data, so that text
editors can automatically handle unknown text files.

Based on:
https://cgit.freedesktop.org/xdg/xdgmime/commit/?id=5181175d5fdaa3832b0fd094cda0120b1fe92af6
https://cgit.freedesktop.org/xdg/xdgmime/commit/?id=9c5802b8da56187c5c6abaf70042d14b12d832a9

https://bugzilla.gnome.org/show_bug.cgi?id=795544
2018-05-10 11:46:17 +01:00
..
.gitignore gio/ docs/reference/gio Merged gio-standalone into glib. 2007-11-26 16:13:05 +00:00
Makefile.am Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
meson.build Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmime.c xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmime.h xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimealias.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimealias.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimecache.c xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimecache.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeglob.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimeglob.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeicon.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimeicon.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeint.c xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimeint.h xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimemagic.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimemagic.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeparent.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimeparent.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00