Re: Opening stdin/stdout in binary mode on Windows
"Merlin Moncure" <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.devel.win32 |
|---|---|
| Message-ID | <[email protected]> |
Bruce wrote: > Well, that is a nifty trick. Great to have that solved with no > documentation changes required. > > Without this fix we were going to have tons of headaches. This is pretty standard m.o. in porting unix applications to win32, or even in console mode win32 apps that need to support binary redirection. I almost suggested this (setmode), but stupidly assumed it must have been attempted and discarded for reasons unknown at an earlier time :-). Merlin ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [email protected]