octave-maintainers
[Top][All Lists]
Advanced

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

MSVC compiler support [patch 28]: setvbuf crash


From: Michael Goffioul
Subject: MSVC compiler support [patch 28]: setvbuf crash
Date: Tue, 17 Oct 2006 21:58:42 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

setvbuf leads to a crash when called on a pipe (don't know why).

Index: src/oct-procbuf.cc
===================================================================
RCS file: /cvs/octave/src/oct-procbuf.cc,v
retrieving revision 1.30
diff -p -c -r1.30 oct-procbuf.cc
*** src/oct-procbuf.cc  8 May 2006 20:23:05 -0000       1.30
--- src/oct-procbuf.cc  17 Oct 2006 11:07:42 -0000
*************** octave_procbuf::open (const char *comman
*** 78,85 ****
--- 78,87 ----
  
    open_p = true;
  
+ #ifndef _MSC_VER
    if (mode & std::ios::out)
      ::setvbuf (f, 0, _IOLBF, 0);
+ #endif
  
    return this;
    

reply via email to

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