Skip to content

Conversation

@ioquatix
Copy link
Member

@ioquatix ioquatix commented Jul 1, 2025

Fixed EOF behavior in read to match Ruby's standard IO semantics. Previously, both read() and read(size) would return nil at EOF. Now read() without arguments correctly returns an empty string "" at EOF, while read(size) with a specific size returns nil at EOF, exactly matching Ruby's IO#read behavior.

Types of Changes

  • Bug fix.

Contribution

@ioquatix ioquatix force-pushed the eof-handling branch 2 times, most recently from 0be6e95 to 7480455 Compare July 1, 2025 07:19
@ioquatix ioquatix merged commit 960a685 into main Jul 1, 2025
42 of 48 checks passed
@ioquatix ioquatix deleted the eof-handling branch July 1, 2025 07:43
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