Mercurial > gub
changeset 6382:fd268ef0c4bb
Fix mingw::ghostscript
popen
author | Masamichi Hosoda <trueroad@users.noreply.github.com> |
---|---|
date | Sat, 14 Mar 2015 10:46:21 +0900 |
parents | cbb925200a8a |
children | 5b8eb8bbe753 |
files | gub/specs/ghostscript.py patches/ghostscript-9.15-windows-popen.patch |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/ghostscript.py Sat Mar 14 10:05:45 2015 +0900 +++ b/gub/specs/ghostscript.py Sat Mar 14 10:46:21 2015 +0900 @@ -27,6 +27,7 @@ patches = [ 'ghostscript-9.15-make.patch', 'ghostscript-9.15-cygwin.patch', + 'ghostscript-9.15-windows-popen.patch', 'ghostscript-9.15-windows-snprintf.patch', 'ghostscript-9.15-windows-make.patch', ]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/ghostscript-9.15-windows-popen.patch Sat Mar 14 10:46:21 2015 +0900 @@ -0,0 +1,11 @@ +--- a/base/gp_mswin.c 2015-03-11 21:10:32.833047100 +0900 ++++ b/base/gp_mswin.c 2015-03-14 10:38:12.873730900 +0900 +@@ -145,7 +145,7 @@ + win_prntmp, "wb"); + return pfile; + } else if (fname[0] == '|') /* pipe */ +- return mswin_popen(fname + 1, (binary_mode ? "wb" : "w")); ++ return popen(fname + 1, (binary_mode ? "wb" : "w")); + else if (strcmp(fname, "LPT1:") == 0) + return NULL; /* not supported, use %printer%name instead */ + else