diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2000-03-17 06:22:59 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2000-03-17 06:22:59 +0000 |
commit | 6e3a60fc433e78762fc116b8ad7214e222e62650 (patch) | |
tree | 799bcef36be31afc7d235d3e93ad0a32ebfdaf0a /gs/src/dwmainc.cpp | |
parent | 5790d3196ff4f3d0a9bacec63bc423406c83a571 (diff) |
On Windows, puts stdout into binary mode as well as stdin, to allow piping
printer output through stdout (not a good idea, but it should be supported
as well as on other platforms).
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@89 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/dwmainc.cpp')
-rw-r--r-- | gs/src/dwmainc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/src/dwmainc.cpp b/gs/src/dwmainc.cpp index 6a8b78968..2a5df8da3 100644 --- a/gs/src/dwmainc.cpp +++ b/gs/src/dwmainc.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 1996-1998, Russell Lang. All rights reserved. +/* Copyright (C) 1996-2000, Russell Lang. All rights reserved. This file is part of Aladdin Ghostscript. @@ -63,6 +63,7 @@ typedef char FAR * FARARGV_PTR; int rc; setmode(fileno(stdin), O_BINARY); + setmode(fileno(stdout), O_BINARY); // load DLL if (gsdll.load(ghInstance, szDllName, GSREVISION)) { |