|
From: Shigeharu T. <sh...@ie...> - 2016-04-15 08:55:41
|
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 sh...@ie... TEL(&FAX): +81-257-22-8161 +========================================================+ |