[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave core file
From: |
John W. Eaton |
Subject: |
Re: octave core file |
Date: |
Tue, 18 Oct 2005 13:32:53 -0400 |
On 18-Oct-2005, roberto wrote:
| On 10/18/05, John W. Eaton <address@hidden> wrote:
| > Yes. Please tell us exactly what the problem is when you try to do
| > this.
| when i use "kwrite" editor i get only this line:
| Octave-1-L
OK, then this is a binary file. It looks like there is a bug that
prevents Octave from saving files in the ascii format. Please try the
following patch.
Thanks,
jwe
src/ChangeLog:
2005-10-18 John W. Eaton <address@hidden>
* load-save.cc (get_save_format): Also handle "ascii" and "text".
Index: src/load-save.cc
===================================================================
RCS file: /usr/local/cvsroot/octave/src/load-save.cc,v
retrieving revision 1.191.2.7
diff -u -r1.191.2.7 load-save.cc
--- src/load-save.cc 23 May 2005 23:46:10 -0000 1.191.2.7
+++ src/load-save.cc 18 Oct 2005 17:29:17 -0000
@@ -989,7 +989,9 @@
{
load_save_format retval = fallback_format;
- if (fmt == "binary")
+ if (fmt == "ascii" || fmt == "text")
+ retval = LS_ASCII;
+ else if (fmt == "binary")
retval = LS_BINARY;
else if (fmt == "mat-binary" || fmt =="mat_binary")
retval = LS_MAT5_BINARY;
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------