Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] WIN32_CONSOLE usage

From: Manfred Spraul <manfred(at)colorfullife(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>,PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>,PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>,christoph(dot)dalitz(at)hs-niederrhein(dot)de, pgsql-cygwin(at)postgresql(dot)org
Subject: Re: [PATCHES] WIN32_CONSOLE usage
Date: 2003-09-07 18:37:08
Message-ID: 3F5B7AD4.5020201@colorfullife.com (view raw or flat)
Thread:
Lists: pgsql-cygwinpgsql-hackers-win32pgsql-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


In response to

Responses

pgsql-cygwin by date

Next:From: Christoph DalitzDate: 2003-09-07 18:51:49
Subject: Re: WIN32_CONSOLE usage
Previous:From: Bruce MomjianDate: 2003-09-07 16:37:42
Subject: Re: [PATCHES] MinGW patch

pgsql-patches by date

Next:From: Christoph DalitzDate: 2003-09-07 18:51:49
Subject: Re: WIN32_CONSOLE usage
Previous:From: ohpDate: 2003-09-07 18:22:30
Subject: Unixware 713 probs

pgsql-hackers-win32 by date

Next:From: Christoph DalitzDate: 2003-09-07 18:51:49
Subject: Re: WIN32_CONSOLE usage
Previous:From: Bruce MomjianDate: 2003-09-07 16:37:42
Subject: Re: [PATCHES] MinGW patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group