mget() skips binary data! Using 5.0.2 on a Win2000 machine, mget doesn't read
Reported by Kenn Sebesta
Originally assigned to Allan CORNET
-- Bug description --
mget() skips binary data!
Using 5.0.2 on a Win2000 machine, mget doesn't read the 161st entry in the binary file! It also misses another entry later down the page, but I don't remember which it is.
-- Scilab error message --
-- How to reproduce the bug --
fid=mopen('binary_bug.txt','r');
data=mgeti(512,'uc',fid) // or mget(). Both have the same bug
data(159:161) // --> 53 51 10 == (in binary) 35h 33h 0Ah
Compare this to the 161st entry in the attached binary file:
A0h=0Dh
Likewise, there is another skip, as is visible by the fact that mget reads to the 514th byte in the file, instead of stopping at the 512th.