From: | Manfred Spraul <manfred(at)colorfullife(dot)com> |
---|---|
To: | Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de> |
Cc: | peter_e(at)gmx(dot)net, 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 20:04:18 |
Message-ID: | 3F60D542.2030409@colorfullife.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin pgsql-hackers-win32 pgsql-patches |
Christoph Dalitz wrote:
>On Thu, 11 Sep 2003 20:51:24 +0200
>Manfred Spraul <manfred(at)colorfullife(dot)com> wrote:
>
>
>>- 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.
>>
>>
>>
>I do not think that it is possible to handle all cases automatically.
>Even restricting the conversion to input/output on stdin/stdout will fail in
>some circumstances; eg. with the command "psql < script.sql" when the
>script has been written with a windows editor (notepad, emacs or whatever).
>
It would be very hard to get right. Perhaps something like isatty(),
except that it's probably called GetHandleIsConsoleFlag() or something
like that, followed by a check of the code page. But I didn't find a
suitable function yet.
--
Manfred
From | Date | Subject | |
---|---|---|---|
Next Message | Bipinchandra Ranpura | 2003-09-12 09:57:22 | unsubscribe |
Previous Message | Christoph Dalitz | 2003-09-11 19:13:26 | Re: [PATCHES] WIN32_CONSOLE usage |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-12 02:11:07 | Re: [HACKERS] Win32 native port |
Previous Message | Christoph Dalitz | 2003-09-11 19:13:26 | Re: [PATCHES] WIN32_CONSOLE usage |
From | Date | Subject | |
---|---|---|---|
Next Message | Neil Conway | 2003-09-11 21:26:50 | more doc cleanup |
Previous Message | Christoph Dalitz | 2003-09-11 19:13:26 | Re: [PATCHES] WIN32_CONSOLE usage |