Re: WIN32_CONSOLE usage

Поиск
Список
Период
Сортировка
От 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  (Christoph Dalitz <christoph.dalitz@hs-niederrhein.de>)
Список 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 по дате отправления:

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: [HACKERS] Index creation takes for ever
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: Unixware 713 probs