[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48201] Double click in file explorer does not
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows |
Date: |
Wed, 22 Jun 2016 16:58:19 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #8, bug #48201 (project octave):
@Avinoam: To build a debug version with MXE, run the configure script in the
MXE directory with the additional options of
--disable-strip-dist-files --enable-devel-tools
@JohnD: Thanks for testing. In load-save.cc I see the following code:
// 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.
if (looks_like_mat_ascii_file (file, filename))
retval = LS_MAT_ASCII;
It seems that the original programmer knew this wasn't a great idea.
The code for looks_like_mat_ascii_file is buried in
libinterp/corefcn/ls-mat-ascii.cc. Sure enough, there is code checking for
'\n' and '\r'. This isn't very portable. I wonder if it is possible to go
back to the beginning and open the file in text mode and let the C++ standard
libraries deal with the different endings (CR, LF, CRLF).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48201>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, Rik, 2016/06/13
- Message not available
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, Mike Miller, 2016/06/15
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, Rik, 2016/06/21
- Message not available
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, John Donoghue, 2016/06/22
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, John Donoghue, 2016/06/22
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows,
Rik <=
- Message not available
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, John Donoghue, 2016/06/22
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, Rik, 2016/06/22
- [Octave-bug-tracker] [bug #48201] Double click in file explorer does not open png files with default app in windows, Rik, 2016/06/22