Re: Assuming "text/plain" for text-like MIME sniffing buffers often leads to problems



Le jeudi 20 avril 2006 à 18:05 +0200, Alexander Larsson a écrit :
> > 1) having single character sniff patterns isn't a great idea
> 
> Totally. What type was this?

The relevant bugs are 
https://bugs.freedesktop.org/show_bug.cgi?id=6577
and
http://bugzilla.gnome.org/show_bug.cgi?id=336633

> 
> > 2) in ambiguous cases, we should use the mime type coresponding to the
> > longest matchinig pattern, and only return UNKNOWN if there are several
> > matches of the same length.
> 
> Yeah, this sounds like a good idea.

For the record, this idea wasn't mine, but from someone (Federico I
think) on #gnome-hackers ;)

Christophe

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]