octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52644] remove fopen warning for 'capital mode


From: kire pudsje
Subject: [Octave-bug-tracker] [bug #52644] remove fopen warning for 'capital modes'
Date: Mon, 11 Dec 2017 18:20:19 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

URL:
  <http://savannah.gnu.org/bugs/?52644>

                 Summary: remove fopen warning for 'capital modes'
                 Project: GNU Octave
            Submitted by: kpc
            Submitted on: Mon 11 Dec 2017 11:20:18 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Kire Pudsje
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Any

    _______________________________________________________

Details:

I ported some old Matlab scripts, then came across this warning


>> fd=fopen('test.bin', 'Wb')
warning: fopen: treating mode "W" as equivalent to "w"


The capital letters in the modes provided a huge improvement in write
performance when working with Matlab by not flushing (I do not know about
current Matlab versions). As can also be read on this site:
https://undocumentedmatlab.com/blog/improving-fwrite-performance
In the Octave source code there is also a remark about not knowing where the
capital letter modes are for (file-io.cc:142).

This warning can IMHO be removed.
Actually, to be correct, a warning should have been placed at the lower case
modes. But please do NOT do that. 
On the other hand, a remark about the flushing/non-flushing difference between
Matlab and Octave in the help-page could be helpful.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52644>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]