]> 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)
commit474cfc390a83964f9e2154ada5d28e6cc7c4a395
treec4c2b766bb416c20c91ad67cc3e92c8191b9dc2f
parent3a25b2d70c28942cf2c5e4d90d3a643baf845dfc
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