]> 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)
commit6c77ce328f8f26ef7acb19287890f7522b8d1869
treeb20ba485391ea0e90e4ed793f9f98089c4b5c0ef
parentb544ea1a4135bac7ececa3bc4eedfd457997d96e
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