bugGNU Octave - Bugs: bug #50717, textscan swallows ever growing...

 
 

bug #50717: textscan swallows ever growing part inside for-loops

Submitter:  Marc Dirix <dirixmjm>
Submitted:  Tue 04 Apr 2017 03:27:57 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  Marc Dirix Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 04 Apr 2017 04:54:19 PM UTC, comment #1: 

This might be a duplicate of bug #50619. At least the work around from there seems to work for this as well:

      tline = textscan(fid, '%s', 1, 'delimiter', '\n', 'BufSize', 4096)


Closing as such. Please, report back if there is something more to this report.

Markus Mützel <mmuetzel>
Group administrator
Tue 04 Apr 2017 03:27:57 PM UTC, original submission:  

I'm using textscan as a line-parser inside a while-loop.
With reading each line the cursor seems to shift an ever more of the next line is swallowed.

Please find attached a minimal example m-file with touchstone datafile.
I have tested the same code in matlab, which works as expected.

Marc Dirix <dirixmjm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #40263:  P_1_2.s2p added by dirixmjm (364KiB - application/octet-stream)
file #40264:  textscanTest.m added by dirixmjm (275B - text/plain)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dirixmjm (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-04 mmuetzel StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #50619
    2017-04-04 dirixmjm Attached File- Added P_1_2.s2p, #40263
        Attached File- Added textscanTest.m, #40264

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code