Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fopen() and friends don't accept binary modes #15

Open
Deek opened this issue Jan 8, 2022 · 0 comments
Open

fopen() and friends don't accept binary modes #15

Deek opened this issue Jan 8, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@Deek
Copy link
Owner

Deek commented Jan 8, 2022

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 Deek added bug Something isn't working enhancement New feature or request good first issue Good for newcomers labels Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant