This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
Re: CYGWIN=codepage:oem read() patch
- To: lw at computerwuerfel dot de
- Subject: Re: CYGWIN=codepage:oem read() patch
- From: Egor Duda <deo at logos-m dot ru>
- Date: Wed, 3 Jan 2001 10:48:46 +0300
- CC: cygwin-patches at sources dot redhat dot com
- Organization: DEO
- References: <200101020118.CAA12604@post.webmailer.de>
- Reply-To: Egor Duda <cygwin-patches at sources dot redhat dot com>
Hi!
Tuesday, 02 January, 2001 lw@computerwuerfel.de lw@computerwuerfel.de wrote:
lcd> The display is ok now, but when you getchar() resp. read() special characters
lcd> from the console, you get false results.
lcd> In winsup/cygwin/fhandler_console.cc, function fhandler_console::read,
every character >> 127 is translated to ansi codepage.
hmm. this is strange, but my patch did contain the following
(http://cygwin.com/ml/cygwin-patches/2000-q4/msg00025/oem-cp-support.diff)
***************
*** 222,226 ****
/* Need this check since US code page seems to have a bug when
converting a CTRL-U. */
! if ((unsigned char)ich > 0x7f)
OemToCharBuff (tmp + 1, tmp + 1, 1);
if (!(input_rec.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))
--- 222,226 ----
/* Need this check since US code page seems to have a bug when
converting a CTRL-U. */
! if ((unsigned char)ich > 0x7f && current_codepage == ansi_cp)
OemToCharBuff (tmp + 1, tmp + 1, 1);
if (!(input_rec.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))
perhaps something gone wrong when applying this patch?
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19