[Bug 9622] New: Binary/Text IO in C++ under Wine
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(a)winehq.org ReportedBy: nmnnotmyname(a)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.
http://bugs.winehq.org/show_bug.cgi?id=9622 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dank(a)kegel.com --- Comment #1 from Dan Kegel <dank(a)kegel.com> 2007-09-09 22:45:52 --- Please post a longer code fragment, with an explicit description of how to set up the data file, and a better explanation of how things fail. As it is, we don't have enough info to reproduce your problem. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 --- Comment #2 from John C. <nmnnotmyname(a)gmail.com> 2007-09-10 20:52:03 --- I'm writing a test application. I'll be running it through VMWare and Wine, and if it does in fact behave differently on Wine and Windows (And i want to check Cedega just to see, but my installation of Python is severely damaged and i don't feel like directly invoking the Wine engine under Cedega.) Once i have my test case done i'll attach it. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 --- Comment #3 from Jan Zerebecki <jan.wine(a)zerebecki.de> 2007-10-08 10:19:03 --- On the contrary, windows does differentiate between opening files as text or binary. Linux does behave the same for both. (I didn't use that api/function, but I guess it maps to the same low level calls.) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 Jan Zerebecki <jan.wine(a)zerebecki.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Difficulty|Minutes |--- -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #4 from Dan Kegel <dank(a)kegel.com> 2007-10-09 05:33:04 --- Say, is this the same as http://bugs.winehq.org/show_bug.cgi?id=9894 ? Please try wine from git, possibly with the last patch mentioned in that bug, http://www.winehq.org/pipermail/wine-patches/2007-October/044767.html and let me know if your problem is fixed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 Jason Edmeades <us(a)edmeades.me.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |us(a)edmeades.me.uk --- Comment #5 from Jason Edmeades <us(a)edmeades.me.uk> 2008-04-03 16:48:28 --- Sounds similar to 8598... Hows the test program coming? The bug doesnt contain enough information to debug / recreate / resolve this one -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 --- Comment #6 from Austin English <austinenglish(a)gmail.com> 2008-10-06 00:50:05 --- Is this still an issue in current (1.1.5 or newer) wine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |ABANDONED --- Comment #7 from Austin English <austinenglish(a)gmail.com> 2009-04-17 14:18:30 --- No response in 6 months => abandoned. If you still have problems in current (1.1.19 or newer) wine and can provide the requested information, feel free to reopen. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9622 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Austin English <austinenglish(a)gmail.com> 2009-04-17 14:26:51 --- Closing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org