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

Re: [PATCHES] WIN32_CONSOLE usage

From: Manfred Spraul <manfred(at)colorfullife(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de>,pgman(at)candle(dot)pha(dot)pa(dot)us, pgsql-patches(at)postgresql(dot)org,pgsql-hackers-win32(at)postgresql(dot)org, pgsql-cygwin(at)postgresql(dot)org
Subject: Re: [PATCHES] WIN32_CONSOLE usage
Date: 2003-09-11 18:51:24
Message-ID: 3F60C42C.3050703@colorfullife.com (view raw or flat)
Thread:
Lists: pgsql-cygwinpgsql-hackers-win32pgsql-patches
Peter Eisentraut wrote:

>If you can detect that they are different, why can't you adjust the code
>page in that case only?
>  
>
What should we do if we detect that they differ:
- set the console code page to the ansi code page. This has two 
drawbacks: It doesn't work with Indic, because Indic doesn't have an 
ansi code page. And the user must still switch the console font. But: if 
the user must change the configuration, then he can as easily change 
both the font and the code page. Which means: SetConsoleCP is the wrong 
approach.
- OemToChar() and CharToOem() convert all console input/output. In the 
long run this might be the better solution, if it works entirely without 
user intervention. I'm not sure if it's possible to get all corner cases 
right.

--
    Manfred




In response to

Responses

pgsql-cygwin by date

Next:From: Christoph DalitzDate: 2003-09-11 19:04:03
Subject: Re: [PATCHES] WIN32_CONSOLE usage
Previous:From: Peter EisentrautDate: 2003-09-11 18:30:53
Subject: Re: [PATCHES] WIN32_CONSOLE usage

pgsql-patches by date

Next:From: Christoph DalitzDate: 2003-09-11 19:04:03
Subject: Re: [PATCHES] WIN32_CONSOLE usage
Previous:From: Peter EisentrautDate: 2003-09-11 18:30:53
Subject: Re: [PATCHES] WIN32_CONSOLE usage

pgsql-hackers-win32 by date

Next:From: Christoph DalitzDate: 2003-09-11 19:04:03
Subject: Re: [PATCHES] WIN32_CONSOLE usage
Previous:From: Peter EisentrautDate: 2003-09-11 18:30:53
Subject: Re: [PATCHES] WIN32_CONSOLE usage

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