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

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

[Octave-bug-tracker] [bug #57632] 5.1.90 crash on cygwin


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #57632] 5.1.90 crash on cygwin
Date: Tue, 21 Jan 2020 01:08:37 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Follow-up Comment #7, bug #57632 (project octave):

Thank you again for testing.  Now it comes to the very basics:

Program 1 (too simple to fail):


fid = fopen ("blub.txt", "w");
fputs (fid, "GNU Octave 1");
fclose (fid);
fid = fopen ("blub.txt", "r");
str = fgets (fid);
fclose (fid);
unlink ("blub.txt");
disp (str);



Program 2 (+ modes):


fid = fopen ("blub.txt", "w+");
fputs (fid, "GNU Octave 2");
fclose (fid);
fid = fopen ("blub.txt", "r+");
str = fgets (fid);
fclose (fid);
unlink ("blub.txt");
disp (str);



Program 3 (tempfile):


f = tempname ()
fid = fopen (f, "w");
fputs (fid, "GNU Octave 3");
fclose (fid);
fid = fopen (f, "r");
str = fgets (fid);
fclose (fid);
unlink (f);
disp (str);



Program 4 (tempfile, + modes):


f = tempname ()
fid = fopen (f, "w+");
fputs (fid, "GNU Octave 4");
fclose (fid);
fid = fopen (f, "r+");
str = fgets (fid);
fclose (fid);
unlink (f);
disp (str);


If those fail, I think there is a serious problem with Octave using cygwins
file I/O capabilities.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57632>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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