forwarded 443772 https://bugs.freedesktop.org/show_bug.cgi?id=12541 tags 443772 + confirmed upstream thanks
Am Montag, den 24.09.2007, 00:32 +0200 schrieb Stephane DESNEUX: > Package: shared-mime-info > Version: 0.22-2 > Severity: normal > > A WAV file matches audio/x-wav but also video/x-msvideo (both are defined at > priority 50 in /usr/share/mime/magic). > > If I use xdgmime (cvs version) to detect mimetypes *only* with magic numbers > (without globs), I get no mimetype at all because the lookup function in > xdgmimemagic.c detects multiple mime types with same priority and can't make > a decision (the result is discarded: see xdgmimemagic.c:685) > > I suppose that tools based on xdgmime (gnome-vfs for example) suffer the same > problem but I didn't checked. > > I solved the pb easily by adjusting video/x-msvideo magic priority to 49 in > /usr/share/mime/packages/freedesktop.org.xml and running update-mime-database. > > Perhaps another way to workaround the pb is to make video/x-msvideo match > "RIFF" *AND* "AVI" (instead of "RIFF" or "AVI" as stated in xml file line > 15516) > > Finally, even if I found a workaround or two, I don't know if it's an > upstream bug or not. Both the magic > file and the source code to use it are involved. The specification doesn't > give a detailed magic matching algorithm... Thanks for reporting, I've forwarded this bug upstream: Bye -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]