Comment 6 for bug 99736

Revision history for this message
In , Daniel Leidert (dleidert-deactivatedaccount) wrote :

(In reply to comment #0)
> I have a text file that begins with "TP1" (you can create one with just these
> three characters). When double-clicking on it in nautilus, it tells me that the
> filename suggests it's a text file but the file content suggests it's a portable
> bitmap file.

Hm. ATM in fast detection its detected as application/octet-stream by gnomevfs-info. If it would be detected as text/plain, then gnomevfs shouldn't detect it as image/x-portable-bitmap.

I'm not sure if the problem can be solved in the shared-mime-info database. IMO there are two alternatives: 1) remove the magic from image/x-portable-bitmap (no conflicting global pattern) or b) forward this to the upstream of gnomevfs and kdemime and check, if some better heuristics between text/plain and application/octet-stream can solve this problem.