msvcrt: fread: exhaust buffered data before using unbuffered data in ascii mode

Dan Kegel dank at
Mon Dec 15 23:47:56 CST 2008

With testcase.

This should never be worse than the existing code,
and for some inputs it's better.
It would be better still if remove_cr() was stateful, but
I haven't hit a situation in the real world yet that needs that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fread.patch
Type: text/x-diff
Size: 2797 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list