|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #53894] The file browser tries to open some m-files as data files instead |
Date: | Mon, 14 May 2018 20:41:29 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #2, bug #53894 (project octave): Any plain text file that contains no spaces, commas, or tabs on each line is going to look like a Matlab format ASCII file according to Octave's current logic. // FIXME: looks_like_mat_ascii_file does not check to see // whether the file contains numbers. It just skips comments // and checks for the same number of words on each line. We // may need a better check here. The best way to do that // might be just to try to read the file and see if it works. The following file also looks like a Matlab ASCII file to Octave's heuristics: foo=12; abs(foo) plot(rand(12)) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53894> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |