Mon 28 Mar 2016 01:30:25 AM UTC, comment #5:
In file oct-stream.cc:
I added a statement after line 1541 so that it now reads:
This fixes the problem with printing Lars's large text file for me, but it does not seem the most robust solution. Someone please check.
|
Mon 28 Mar 2016 01:08:36 AM UTC, comment #4:
I'm getting different output:
There's a periodic messup every 88 lines (lines 261, 349, 437, 525, then 961, 1049, etc). Almost certainly that's the buffer size for this read operation and there's some unterminated string somewhere. Looking...
|
Sat 26 Mar 2016 08:57:36 AM UTC, comment #3:
OK, the patch fixes the 'delimiter' '\n' problem for me.
But the problem with long files looks serious:
I attached a file 'textscantest.txt'
Running this script in current dev (4.0 works fine)
produces this garbage for me
Also octave crashes during textscan within another large program with
Speicherzugriffsfehler = Memory access error
Probably a pointer problem?
(file #36766)
|
Sat 26 Mar 2016 04:10:50 AM UTC, original submission:
in current dev (works fine in 4.0)
Save this as textscantest.m:
and execute! Result:
This looks like a wrong interpretion of '\n'
But there must be more bugs, when reading long textfiles some binary garbage is appearing in the output...
|