* fhandler_console.cc (fhandler_console::read): Revert change from

2009-11-09.
This commit is contained in:
Corinna Vinschen 2009-11-10 20:02:20 +00:00
parent 3aec0f00b1
commit 03c48ee2e0
2 changed files with 16 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2009-11-10 Corinna Vinschen <corinna@vinschen.de>
* fhandler_console.cc (fhandler_console::read): Revert change from
2009-11-09.
2009-11-10 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (is_volume_mountpoint): Align check with

View File

@ -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