Difficulty fixing a regression in reading text files with MSVCRT

Erich Hoover ehoover at mines.edu
Mon Dec 28 19:03:35 CST 2009


In a surprise last-minute request it became necessary for me to get
Athena Visual Studio running under Wine again
(http://appdb.winehq.org/objectManager.php?sClass=version&iId=15183).
A couple of commits to MSVCRT (that are needed for other reasons)
caused regressions in Wine's ability to run this application and I am
having a lot of difficulty getting Athena working again.  The commits
that revealed the problem are:
ebe4a9e321800fbe6d2004a640cd276a28d15c38: Remove CRs earlier in ascii mode.
7f3c70c52fe470d431a51b3363ed4f7336d5f7f5: Remove CRs earlier in ascii
mode in fseek, too.

After tracing down a lot of rabbit holes, it appears that the problem
is somehow related to how the buffer boundary influences the file
position reported by ftell.  I've attached a test case that appears
related to the issue.  I can use a native MSVCRT for now, but I would
appreciate some assistance so that this issue can be properly resolved
at some point.

Erich Hoover
ehoover at mines.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: athena-test.diff
Type: text/x-patch
Size: 1142 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20091228/1ff77189/attachment.bin>


More information about the wine-devel mailing list