http://bugs.winehq.org/show_bug.cgi?id=16511
--- Comment #2 from Dan Kegel dank@kegel.com 2008-12-15 11:13:01 --- Created an attachment (id=17965) --> (http://bugs.winehq.org/attachment.cgi?id=17965) Patch that seems to fix the problem
In ascii mode, if we decide we need one more byte, it looks like sometimes we grab it from the file instead of the buffer! The attached patch fixes this by continuing to use buffered data longer.