[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug reading single bit binary data
- To: ferrante@world.std.com (Richard D Ferrante)
- Subject: Re: bug reading single bit binary data
- From: bill@cambridge.apple.com (Bill St. Clair)
- Date: Tue, 16 Feb 1993 17:15:16 -0600
- Cc: info-mcl
>I have encountered a problem when trying to read moderate sized (> 4K
>sample) single bit (unsigned-byte 1) binary arrays from files in MCL
>2.0 final.
>
>Essentially the file pointer begins to wrap at about 4096 samples and
>begins rereading data. A sample function with debug output follow.
>
>I haven't seen similar problems with 8 bit files.
This bug was fixed by patch 1 for MCL 2.0. Patches 1 and 2 are available
for anonymous FTP from cambridge.apple.com in the directory
"/pub/mcl2/patches/". You can get them via mail by sending a message
to archive-server@cambridge.apple.com (send a message with a single
line: "help" to find out how to use the archive server).
While investigating this, I found another bug in MCL's byte file I/O.
STREAM-EOFP does not work correctly on streams with other than 8 bits
per element. I have prepared a patch for inclusion in patch 3 for
MCL 2.0. If you want it before then, ask for "stream-eofp-patch".