Re: The status of Freedesktop.org MIME support?
- From: Hongli Lai <h lai chello nl>
- To: gnome-vfs-list gnome org
- Subject: Re: The status of Freedesktop.org MIME support?
- Date: Thu, 27 May 2004 19:51:54 +0200
Hongli Lai wrote:
bla bla
Actually I was wrong. This is just a regular bug in gnome-vfs. :)
I debugged gnome-vfs and found out that the last entry of a magic file
is not inserted into global_magic (xdgmime.c).
The attached 1-liner patch fixes this problem. I also filed a bug:
http://bugzilla.gnome.org/show_bug.cgi?id=143302
--- ../original/gnome-vfs-2.6.1/libgnomevfs/xdgmimemagic.c 2004-03-05 09:57:09.000000000 +0100
+++ xdgmimemagic.c 2004-05-27 19:45:27.000000000 +0200
@@ -733,7 +733,7 @@
break;
case XDG_MIME_MAGIC_MAGIC:
state = _xdg_mime_magic_parse_magic_line (magic_file, match);
- if (state == XDG_MIME_MAGIC_SECTION)
+ if (state == XDG_MIME_MAGIC_SECTION || (state == XDG_MIME_MAGIC_EOF && match->mime_type))
{
match->matchlet = _xdg_mime_magic_matchlet_mirror (match->matchlet);
_xdg_mime_magic_insert_match (mime_magic, match);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]