| От | Manfred Spraul |
|---|---|
| Тема | Re: WIN32_CONSOLE usage |
| Дата | |
| Msg-id | 3F5B7AD4.5020201@colorfullife.com обсуждение исходный текст |
| Ответ на | Re: WIN32_CONSOLE usage (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: WIN32_CONSOLE usage
|
| Список | pgsql-patches |
Bruce Momjian wrote:
>>I think we ought to detect the console type automatically anyway.
>>Certainly we don't want people to have to set this variables all the time.
>>
>>
>
>Agreed. Automatic is ideal. Any ideas out there?
>
>
>
Does input from the console work correctly right now?
What about setting the code page of the console to the ansi code page?
Or to the code page that postgresql uses internally.
SetConsoleCP(GetACP());
SetConsoleOutputCP(GetACP());
might be sufficient.
--
Manfred
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера