[Bug 9622] New: Binary/Text IO in C++ under Wine
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Sep 9 21:07:25 CDT 2007
http://bugs.winehq.org/show_bug.cgi?id=9622
Summary: Binary/Text IO in C++ under Wine
Product: Wine
Version: 0.9.44.
Platform: PC-x86-64
OS/Version: Linux
Status: UNCONFIRMED
Severity: trivial
Priority: P2
Component: wine-msvcrt
AssignedTo: wine-bugs at winehq.org
ReportedBy: nmnnotmyname at gmail.com
In C++ Input, Wine appears to act weird when reading a binary file as a text
file. In both Windows and Cedega, this condition does not exist. Since i am in
contact with the developer of the program that had this bug, I was able to have
him fix it. Actual code is given here:
ifstream fin(file.c_str(), ios::in | ios::binary); # this works for binary
files in wine, windows and Cedega
ifstream fin(file.c_str()); # this works for binary files in windows and Cedega
The first thing i thought of was in MSVCRT, but i don't know whether or not
wine implements that or it uses the real thing, or by default it uses its own
version. However, I can not trace the actual cause :( I've tried, and i have
the source. Maybe I'm missing it. After all, all i did was a quick scan
through.
I'd also like to note that I believe this is likely an bug by Microsoft:
Perhaps this is because Windows does not make an actual correlation between
binary and text files. I don't really know.
As a final note: I don't know how well Wine handles 64-bit computers (whether
it uses assembly to glue 64-bit wine libraries to 32-bit executables or doesn't
support 64-bit windows/wine libraries and programs or whatever) but i will note
once more this is a 64-Bit computer with 64-bit Sabayon(Modified Gentoo) (But i
did update wine by hand to get the latest version)
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list