bugGNU Octave - Bugs: bug #38851, (MATLAB) 'W' specifier in fopen


bug #38851: (MATLAB) 'W' specifier in fopen

Submitted by:  Guillaume <gyom>
Submitted on:  Mon Apr 29 15:18:49 2013  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: John W. Eaton <jwe>
Originator Name: GuillaumeOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Mon Apr 29 18:34:36 2013, comment #3:

I checked in the following change:


John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Mon Apr 29 16:51:25 2013, comment #2:

Oops, I see the problem. I'll fix it.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Mon Apr 29 16:02:04 2013, comment #1:

I can confirm the warning message and error return value for both "W" and "R". The warning message sounds like it's doing the right thing, but the file is not opened.

A mode of "A" should also be treated like "a" for compatibility.

Mike Miller <mtmiller>
Project Administrator
Mon Apr 29 15:18:49 2013, original submission:

I tried to use specifier 'W+' instead of 'w+' in my ( MATLAB) code for fopen.
In Octave, a warning is displayed but the returned file identifier is -1:

while it opens a file ok when using 'w+':

Guillaume <gyom>


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

Attach File(s):

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 jwe (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by gyom (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Apr 29 18:34:36 2013jweStatusIn Progress=>Fixed
    Mon Apr 29 16:51:25 2013jweStatusConfirmed=>In Progress
      Assigned toNone=>jwe
    Mon Apr 29 16:02:04 2013mtmillerCategoryNone=>Interpreter

    Back to the top

    Powered by Savane 3.1-cleanup1