Commit Graph

1 Commits

Author SHA1 Message Date
Michel Martens
bdd0708a99 fix: return null from IO.read on EOF instead of empty string
Previously, IO.read would return an empty string when reading from stdin reached EOF. This changes the behavior to return null when fgets returns NULL, indicating end-of-file. The fix removes the unconditional wrenReturnString call and only returns the buffer when data was actually read. A new test case verifies that IO.read returns null on EOF.
2015-03-07 09:10:18 +00:00