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

 
 

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

Submitted by:  Arnaud Delorme <arnodelorme>
Submitted on:  Sat 11 Jun 2011 03:39:06 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by philipnienhuis (Posted a comment)
  • -unavailable- added by arnodelorme (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 27 Jul 2011 11:06:25 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 13 Jun 2011 03:11:30 AM UTCrik5StatusNone=>Confirmed
      Summaryfopen=>fopen fails when called with 2 output arguments

    Back to the top


    Powered by Savane 3.1-cleanup1