octave-maintainers
[Top][All Lists]
Advanced

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

fopen rb


From: John W. Eaton
Subject: fopen rb
Date: Fri, 16 Apr 2004 11:33:37 -0500

On 15-Apr-2004, Paul Kienzle <address@hidden> wrote:

| It seems the default open mode for files in matlab on
| Windows changed from text mode in 1994 to binary
| mode today.  We are defaulting to text mode.  Also,
| we do not mention 'b' and 't' flags in the help text.
| 
| The attached (untested) patch changes the default
| open mode and updates the documentation.  Hopefully
| this won't be a problem for any of the 14000+ users who
| have downloaded the windows binary when we change it.
| 
| I'm not thrilled to have a different default from the POSIX
| interface --- it will surprise C programmers.  Having a
| different default from Matlab will surprise a different set
| of users.  Maybe we could warn if neither 't' nor 'b' are
| specified?  I'm not too thrilled about that either.

I applied your patch.

I also added the once-per-session warning I suggested in a previous
message.  You can disable it by adding

  global __disable_fopen_interface_change_warning__;

to your ~/.octaverc file.

jwe



reply via email to

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