CoCoC icon indicating copy to clipboard operation
CoCoC copied to clipboard

fopen() and friends don't accept binary modes

Open Deek opened this issue 2 years ago • 0 comments

OS-9, like Unix, makes no distinction between text and binary files; but when ANSI showed up, it specified that fopen needs to accept b even if it makes no difference, for portability with other systems that make a distinction between text and binary files. But when Kreider fopen() encounters b in a mode string, it fails with an Error 203 (Bad Mode) in errno.

Deek avatar Jan 08 '22 22:01 Deek