Avoid changing stdin/stdout to binary mode on Windows unless that is
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Sep 2005 00:36:35 +0000 (00:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Sep 2005 00:36:35 +0000 (00:36 +0000)
commit3ee70a840a9f3e392219e61cc46c676487367177
treece8edfa935100f7025ca0caea21d68ac58a76de0
parente7c0a12605907cbc8f1b9162b44404ed027d8184
Avoid changing stdin/stdout to binary mode on Windows unless that is
really the source or destination of the archive.  I think this will
resolve recent complaints that password prompting is broken in pg_restore
on Windows.  Note that password prompting and reading from stdin is an
unworkable combination on Windows ... but that was true anyway.
src/bin/pg_dump/pg_backup_archiver.c