[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52644] remove fopen warning for 'capital mode
[Octave-bug-tracker] [bug #52644] remove fopen warning for 'capital modes'
Mon, 11 Dec 2017 18:20:19 -0500 (EST)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
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
Assigned to: None
Originator Name: Kire Pudsje
Discussion Lock: Any
Operating System: Any
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:
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:
Message sent via/by Savannah
- [Octave-bug-tracker] [bug #52644] remove fopen warning for 'capital modes',
kire pudsje <=