|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #37333] textscan called with empty whitespace |
Date: | Wed, 12 Sep 2012 11:47:20 +0000 |
User-agent: | Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) |
URL: <http://savannah.gnu.org/bugs/?37333> Summary: textscan called with empty whitespace Project: GNU Octave Submitted by: None Submitted on: Wed 12 Sep 2012 11:47:19 AM UTC Category: Libraries Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Andy Register Originator Email: address@hidden Open/Closed: Open Discussion Lock: Any Release: 3.6.2 Operating System: Any _______________________________________________________ Details: Line 113 in usr/share/octave/3.6.2/m/io/textscan.m probably needs a ! inserted. That is, if ((isempty (args{ipos+1}) && has_str_fmt)) should probably be changed to if (! (isempty (args{ipos+1}) && has_str_fmt)) This fix worked in the MATLAB code I ported over and it makes the code consistent with the comments. I also noticed there were no test cases for 'whitespace'. Thanks _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?37333> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |