Re: Questions about MIME type detection



On Sat, 2006-08-12 at 21:19 +0200, Redoute wrote:
> Hi
> 
> I have some questions regarding how MIME type detection in GNOME works
> in detail. I have read the specification from freedesktop.org.
> 
> How does GNOME decide if a given file is a text file? Why does GNOME
> identify this file as text/plain?
> 
> > emily Cervelat:~$ gnomevfs-info -s 0131sniff | grep MIME
> > MIME type         : text/plain
> 
> > emily Cervelat:~$ hd 0131sniff
> > 00000000  eb 00 90 28 4b 21 2b 6b  49 48 43 00 02 01 01 00  |...(K!+kIHC.....|
> > 00000010  02 e0 00 40 0b f0 09 00  12 00 02 00 00 00 00 00  |                |
> > 00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> > *
> > 000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00        |..............|
> > 000000fe

Thats very strange. Could you post the actual file you used?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a bookish pirate gentleman spy on the edge. She's an elegant 
belly-dancing wrestler from a family of eight older brothers. They fight 
crime! 




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