From: "Rafał Maj" Newsgroups: comp.os.msdos.djgpp Subject: binary I/O bug ? Date: Wed, 23 Aug 2000 21:34:22 +0200 Organization: Academic Computer Center CYFRONET AGH Lines: 18 Message-ID: <8o1930$36j$1@info.cyf-kr.edu.pl> NNTP-Posting-Host: d-94-53-01.cyfronet.krakow.pl X-Trace: info.cyf-kr.edu.pl 967059360 3283 149.156.1.161 (23 Aug 2000 19:36:00 GMT) X-Complaints-To: news AT cyf-kr DOT edu DOT pl NNTP-Posting-Date: 23 Aug 2000 19:36:00 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I think ther is bug in I/O binary mode : 1) I can't open ofstream / ifstream in ios::binary mode. When I use : ifstream plik; plik.open("test.txt",ios::binary); plik<<"OK ;)"; plik.close(); then test.txt is empty. When I don't use ios::binary, then everything is OK. 2) Functions write / read from class ifstream/ofstream, with should be always binary, are working like in text mode (changing some chars, I think it was #13 -> #10 #13 or somethink like this) QUESTION : Where I can download new version of DJGPP that don't have this bug, or how can I do workaround of this bug ?