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

Make the implementation match std. #33

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

sunfishcode
Copy link
Owner

Use != 0 instead of == 1 for testing isatty's return value, so that this code follows std as closely as possible.

And update the comments in the Windows implementation to reflect that this code matches what's in current std as well.

Use `!= 0` instead of `== 1` for testing `isatty`'s return value,
so that this code follows std as closely as possible.

And update the comments in the Windows implementation to reflect that
this code matches what's in current std as well.
@sunfishcode sunfishcode merged commit 8dafe57 into main Jan 22, 2024
10 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/sync-with-std branch January 22, 2024 13:05
@ChrisDenton
Copy link

Btw, just a heads up but rust-lang/rust#119664 has been approved (pending rebase) which changes the implementation slightly due to an issue with msys2's /dev/ptmx.

@sunfishcode
Copy link
Owner Author

Thanks for the heads up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants