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

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

[Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Win


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails)
Date: Mon, 11 Jul 2016 18:36:02 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

Follow-up Comment #15, bug #48326 (project octave):

Indeed, freport gives:

>> test printd
stopped in
C:\Programs\Octave\Octave-4.1.0+VEp_w64_20160708\share\octave\4.1.0+\m\plot
\util\printd.m at line 47
47:   [pf, tempf, mag] = mkstemp ("oct-XXXXXX", 1);
debug>
:
debug> freport (pf)
warning: freport: ignoring extra arguments
warning: called from
    printd at line 48 column 1
    __test__ at line 11 column 2
    test at line 583 column 13

  number  mode  arch       name
  ------  ----  ----       ----
     0     r    ieee-le    stdin
     1     w    ieee-le    stdout
     2     w    ieee-le    stderr
     3     w+b  ieee-le    oct-GCvhOg




Didn't know that tempname() is less safe (why is that?)
I agree fixing mkstemp is superior. I'll leave here - as far as this bug goes
I've done what I could do :-)

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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