On 9 May 2012 14:51, <[email protected]> wrote: > > It is used by fcl-web. On linux, it loads /etc/mime.types.
I don't know the exact format of that file, I guessed "mime type name" then "file extension list" But on my Ubuntu 10.04 that file has many lines only showing the "mime type name" with no extension mentioned. So how reliable is that file really? I know Linux (at least Gnome) uses magic numbers (first 2-4 bytes of a file) to detect the real file type without looking at the file extension. These magic numbers information is stored somewhere in linux (can't remember where now), and it includes the magic number and mime type mapping. I'll see if I can find the file I am talking about. But as with everything Linux, this is probably highly distro specific etc. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
