From: sos@prospect.com.ru (Sergey Okhapkin)
Subject: RE: bug report
13 Feb 1997 04:52:16 -0800
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <01BC19A1.A57F6570.cygnus.gnu-win32@gater.krystalbank.msk.ru>
Original-To: "gnu-win32@cygnus.com" <gnu-win32@cygnus.com>,
        "'Andres Takach'"
	 <takach@ece.iit.edu>
Encoding: 16 TEXT
Original-Sender: owner-gnu-win32@cygnus.com

Andres Takach wrote:
> 
> There seems to be a problem in the read() (getc etc.) when
> reading binary files. A character 1A can confuse the read
> to think that it has found the end of file.
>   fp = fopen("temp","w");
> 
>   fp = fopen("temp","r");

You should open binary files with "wb"/"rb" mode flags.

-- 
Sergey Okhapkin
Moscow, Russia
Looking for a job.


-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
