Re: WIN32_CONSOLE usage - Mailing list pgsql-patches

From Manfred Spraul
Subject Re: WIN32_CONSOLE usage
Date
Msg-id 3F5B7AD4.5020201@colorfullife.com
Whole thread Raw
In response to Re: WIN32_CONSOLE usage  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: WIN32_CONSOLE usage
List 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 by date:

Previous
From: Manfred Koizar
Date:
Subject: Re: [HACKERS] Index creation takes for ever
Next
From: Larry Rosenman
Date:
Subject: Re: Unixware 713 probs