bugGNU Octave - Bugs: bug #33535, fopen fails when called with 2...

 
 

bug #33535: fopen fails when called with 2 output arguments

Submitter:  Arnaud Delorme <arnodelorme>
Submitted:  Sat 11 Jun 2011 03:39:06 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 27 Jul 2011 11:06:25 PM UTC, comment #3: 

Fixed on the stable branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/a19b50f6697f).

Rik <rik5>
Group administrator
Mon 13 Jun 2011 03:11:30 AM UTC, comment #2: 

Confirmed.  Changed Summary text to be more explicit about the problem being 2 output arguments.

Rik <rik5>
Group administrator
Sun 12 Jun 2011 08:47:04 PM UTC, comment #1: 

I think that should read more like:
"fopen bails out when two output arguments are requested"

In Octave-3.2.4 this worked OK.

In Octave-3.4.0 (& Octave-3.3.90):

octave-3.4.0:2> [fid] = fopen ('classpath.txt')
fid =  3
octave-3.4.0:3> fclose (fid)
ans = 0
octave-3.4.0:4> [fid, message] = fopen ('classpath.txt')
error: invalid conversion from string to real scalar
error: file id must be a file object or integer value

(on Linux & Windows BTW)

Philip Nienhuis <philipnienhuis>
Group Member
Sat 11 Jun 2011 03:39:06 PM UTC, original submission:  

fopen crashes when only one parameter is given

[IN, message] = fopen(filename); % works under Matlab

Arnaud Delorme <arnodelorme>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Posted a comment)
  • -email is unavailable- added by arnodelorme (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-07-27 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2011-06-13 rik5 StatusNone Confirmed
        Summaryfopen fopen fails when called with 2 output arguments

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code