8000 Set O_BINARY correctly at rb_io_eof() by YO4 · Pull Request #14810 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Conversation

YO4
Copy link
Contributor
@YO4 YO4 commented Oct 10, 2025

On Windows, when IO opend with “rt” it gives O_TEXT to fd. At this point calling io_fillbuf() causes a inconsistency between the read length and file position when encountering 0x1A (EOF)

Set O_BINARY correctly or use eof() under appropriate conditions.

fixes Bug #21634

On Windows, when IO opend with “rt” it gives O_TEXT to fd.
At this point calling io_fillbuf() causes a inconsistency between the read length and file position when encountering 0x1A (EOF)

Set O_BINARY correctly or use eof() under appropriate conditions.
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.

1 participant

0