diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-11-10 23:02:20 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-11-10 23:02:20 +0300 |
commit | 03c48ee2e0ee6100f9156fb33bccc38207f7727e (patch) | |
tree | 2ba2169b23ca94bb13c372c414ca13979c49066f /winsup/cygwin/fhandler_console.cc | |
parent | 3aec0f00b186a669606767401892b9e9f8b1b84a (diff) |
* fhandler_console.cc (fhandler_console::read): Revert change from
2009-11-09.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 8bfccde0b..632ec1dcb 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -379,23 +379,18 @@ fhandler_console::read (void *pv, size_t& buflen) else toadd = tmp + 1; } - else if (nread == 1) + else if (dev_state->metabit) { - /* META handling is restricted to singlebyte (ASCII) - character values. */ - if (dev_state->metabit) - { - tmp[1] |= 0x80; - toadd = tmp + 1; - } - else - { - tmp[0] = '\033'; - tmp[1] = cyg_tolower (tmp[1]); - toadd = tmp; - nread++; - dev_state->nModifiers &= ~4; - } + tmp[1] |= 0x80; + toadd = tmp + 1; + } + else + { + tmp[0] = '\033'; + tmp[1] = cyg_tolower (tmp[1]); + toadd = tmp; + nread++; + dev_state->nModifiers &= ~4; } } #undef ich |