"David D. Hagood" wowbagger@sktc.net wrote:
--- dlls/msvcrt/file.c 7 Oct 2005 15:01:15 -0000 1.91 +++ dlls/msvcrt/file.c 7 Nov 2005 01:15:55 -0000 @@ -1657,7 +1657,16 @@ TRACE(":EOF\n"); MSVCRT_fdesc[fd].wxflag |= WX_ATEOF; if (MSVCRT_fdesc[fd].wxflag & WX_TEXT)
{ num_read -= remove_cr(bufstart+all_read,num_read);
/* we also need to remove any CTRL-Z at EOF */
while (num_read && (bufstart[all_read+num_read-1] == 0x1a))
{
TRACE("Removing CTRL-Z from EOF\n");
bufstart[all_read+num_read-1] = 0;
num_read --;
}
}
We need a test to see what happens if there are more characters after 0x1a.