[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines |
Date: |
Fri, 21 Aug 2015 23:48:52 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?45808>
Summary: fscanf odd behavior with newlines
Project: GNU Octave
Submitted by: None
Submitted on: Fri 21 Aug 2015 11:48:51 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Jordi Burguet-Castell
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
When there is a newline ('\n') in the format string for fscanf, it seems that
further calls to fscanf don't read from where it is supposed to.
For example, running the attached program produces:
In matlab:
ans = 1
ans = ';'
In octave:
ans = 1
ans = 'y'
I have tried it in windows, but may be present in other systems too.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 21 Aug 2015 11:48:51 PM UTC Name: matlab_octave_diff.m Size: 87B
By: None
the .m file reads data from the .txt file
<http://savannah.gnu.org/bugs/download.php?file_id=34692>
-------------------------------------------------------
Date: Fri 21 Aug 2015 11:48:51 PM UTC Name: matlab_octave_diff.txt Size: 10B
By: None
the .m file reads data from the .txt file
<http://savannah.gnu.org/bugs/download.php?file_id=34693>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45808>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines,
anonymous <=
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, Rik, 2015/08/25
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, Jordi Burguet Castell, 2015/08/26
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, John W. Eaton, 2015/08/26
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, Rik, 2015/08/26
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, John W. Eaton, 2015/08/26
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, John W. Eaton, 2015/08/26
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, Rik, 2015/08/26
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, Rik, 2015/08/26
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, John W. Eaton, 2015/08/27
- [Octave-bug-tracker] [bug #45808] fscanf odd behavior with newlines, Rik, 2015/08/27