Use correct output device for Windows prompts.

Andrew Dunstan <andrew@dunslane.net>

Commit: 1068771abfeec148a9c1ce4782785bddc1982070
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2013-01-24T21:01:31Z
Releases: 9.3.0
Use correct output device for Windows prompts.

This ensures that mapping of non-ascii prompts
to the correct code page occurs.

Bug report and original patch from Alexander Law,
reviewed and reworked by Noah Misch.

Backpatch to all live branches.

Files

PathChange+/−
src/bin/psql/command.c modified +11 −0
src/include/port.h modified +0 −3
src/port/sprompt.c modified +30 −3