]> granicus.if.org Git - postgresql/commit
Use correct output device for Windows prompts.
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 24 Jan 2013 21:01:31 +0000 (16:01 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 24 Jan 2013 21:01:31 +0000 (16:01 -0500)
commit1068771abfeec148a9c1ce4782785bddc1982070
tree3242f72f667ad7626638e045052c6983b547d776
parenta9ceaa53be766a324e41953a78e8bd9fa408edf6
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.
src/bin/psql/command.c
src/include/port.h
src/port/sprompt.c