Use correct output device for Windows prompts.
Andrew Dunstan <andrew@dunslane.net>
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
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/command.c | modified | +11 −0 |
| src/include/port.h | modified | +0 −3 |
| src/port/sprompt.c | modified | +30 −3 |