From bug-request at octave dot org Fri Sep 17 22:12:44 2004 Subject: bug with fread in 2.1.58 From: Andy Adler To: bug at octave dot org Date: Fri, 17 Sep 2004 23:11:05 -0400 (EDT) fread seems to give me problems with a build from yesterday's cvs. Tests are on cygwin under winXP. $ cat > jnkfile # create random jnk adofijapdfijasdfaps CTRL-D $ octave GNU Octave, version 2.1.58 (i686-pc-cygwin). [ SNIP ] octave:1> fid=fopen('jnkfile','rb'); octave:2> fread(fid,[2,inf],'real*4',0,'ieee-le') error: impossible state reached in file `data-conv.cc' at line 968 error: impossible state reached in file `data-conv.cc' at line 968 error: impossible state reached in file `data-conv.cc' at line 968 ... # this works on older octave $ /usr/bin/octave-2.1.42 GNU Octave, version 2.1.42 (i686-pc-cygwin). [SNIP] octave:1> fid=fopen('jnkfile','rb'); octave:2> fread(fid,[2,inf],'real*4',0,'ieee-le') ans = 2.8262e+23 7.0541e+25 7.5015e-31 2.7905e+29 2.6971e+23 0.0000e+00 octave:3> exit ------------------------------------------------------------- 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 -------------------------------------------------------------