[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54064] Behavior of open with unknown or non-e
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #54064] Behavior of open with unknown or non-existing files |
Date: |
Wed, 6 Jun 2018 09:25:31 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #6, bug #54064 (project octave):
I made an equivalent implementation (see attached) with Qt's mimedatabase
class and it doesn't look as good as libmagic. Images are well recognized,
data files not so well:
fmt = -v7
text/plain
fmt = -binary
application/octet-stream
fmt = -text
text/plain
fmt = -zip
application/gzip
fmt = -hdf5
application/x-hdf
Matlab's mat format is seen as plain text, and Octave's binary format is seen
as generic binary data. In either case the "comment ()" property doesn't give
more hint on the nature of the data.
(file #44309)
_______________________________________________________
Additional Item Attachment:
File name: filetype.patch Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54064>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/