aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_console.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-01-03 14:45:47 +0000
committerChristopher Faylor <me@cgf.cx>2001-01-03 14:45:47 +0000
commitc79ec9506080737f06507e09c429423bd3a67c99 (patch)
tree3a26b016a6cd86e3f2f352f5f53c50a782672474 /winsup/cygwin/fhandler_console.cc
parent1bdc5f1fabb8a7ce32ebb81118780b2fb8a5fac3 (diff)
downloadnewlib-c79ec9506080737f06507e09c429423bd3a67c99.zip
newlib-c79ec9506080737f06507e09c429423bd3a67c99.tar.gz
newlib-c79ec9506080737f06507e09c429423bd3a67c99.tar.bz2
* fhandler_console.cc (fhandler_console::read): Restore missing test for code
page before doing OemToCharBuff.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 6d092f1..e63f101 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -219,7 +219,7 @@ fhandler_console::read (void *pv, size_t buflen)
tmp[1] = ich;
/* Need this check since US code page seems to have a bug when
converting a CTRL-U. */
- if ((unsigned char)ich > 0x7f)
+ if ((unsigned char)ich > 0x7f && current_codepage == ansi_cp)
OemToCharBuff (tmp + 1, tmp + 1, 1);
if (!(input_rec.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))
toadd = tmp + 1;