octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #32431] save command error on 3.3.90-3.4.0 (on


From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #32431] save command error on 3.3.90-3.4.0 (on MinGW)
Date: Fri, 11 Feb 2011 21:35:16 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.94 Safari/534.13

URL:
  <http://savannah.gnu.org/bugs/?32431>

                 Summary: save command error on 3.3.90-3.4.0 (on MinGW)
                 Project: GNU Octave
            Submitted by: tmacchant
            Submitted on: 2011年02月11日 21時35分15秒
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hello

Octave 3.3.90 to 3.4.0 give much number of errors than Octave-dev source.

One of the example,


>>>>> processing
d:\usr\Tatsu\mingwhome\octaves\octavesrc\octave-3.4.0\src\ov-fcn-handle.cc
  ***** test
 a = 2;
 f = @(x) a + x;
 g = @(x) 2 * x;
 hm = @version;
 hdld = @svd;
 hbi = @log2;
 f2 = f;
 g2 = g;
 hm2 = hm;
 hdld2 = hdld;
 hbi2 = hbi;
 modes = {"-text", "-binary"};
 if (!isempty(findstr(octave_config_info ("DEFS"),"HAVE_HDF5")))
   modes(end+1) = "-hdf5";
 endif
 for i = 1:numel (modes)
   mode = modes{i};
   nm = tmpnam();
   unwind_protect
     save (mode, nm, "f2", "g2", "hm2", "hdld2", "hbi2");
     clear f2 g2 hm2 hdld2 hbi2
     load (nm);
     assert (f(2),f2(2));
     assert (g(2),g2(2));
     assert (g(3),g2(3));
     unlink (nm);
     save (mode, nm, "f2", "g2", "hm2", "hdld2", "hbi2");
   unwind_protect_cleanup
     unlink (nm);
   end_unwind_protect
 endfor
!!!!! test failed
load: file `C:/Users/TMACCH~1/AppData/Local/Temp\oct-22' seems to be empty!


On 3.3.90-3.4.0 (on MinGW) , save command does not work correctly.


 matrix1 = rand(100, 2);
 save -ascii matrix.ascii matrix1
 matrix2 = load ("matrix.ascii");


On octave-3.4.0 (MinGW), 
error: load: file `matrix.ascii' seems to be empty!
error: load: unable to extract matrix size from file `matrix.ascii'

While for octave-devlopment,
This gives no error.

I do not figure out why 3.3.9x-3.4.0 fails in save command.
Something might be wrong when splitting 3.4 branch source from the
development source.

Is this phenomenon MinGW specific?
   
Any suggestions?

Regards

Tatsuro




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32431>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]