Quantcast

change for popen

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

change for popen

Shigeharu TAKENO
shige 04/15 2016
----------------

The change at 2016-03-20 for bug #1756 may not be appropriate
for *BSD's popen. Please see

  https://sourceforge.net/p/gnuplot/bugs/1756/?page=2

----- From here -----
diff -u src/term.c.ORG src/term.c
--- src/term.c.ORG 2016-04-15 17:28:24.557949000 +0900
+++ src/term.c 2016-04-15 17:29:30.781451000 +0900
@@ -371,10 +371,14 @@
 #if defined(PIPES)
  if (*dest == '|') {
     restrict_popen();
+#ifdef _Windows
     if (term && (term->flags & TERM_BINARY))
  f = popen(dest + 1, "wb");
     else
  f = popen(dest + 1, "w");
+#else
+    f = popen(dest + 1, "w");
+#endif
     if (f == (FILE *) NULL)
  os_error(c_token, "cannot create pipe; output not changed");
     else
----- To here -----

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 [hidden email]   TEL(&FAX): +81-257-22-8161
+========================================================+

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
Loading...