Skip to content

Conversation

Mistuke
Copy link
Contributor

@Mistuke Mistuke commented Jul 31, 2018

This fixes #223

The termination condition of Text's hGetContents was relying on the EOF marker being replaced by a single \r. This would go wrong when the only decode-able character left in the byte buffer is a single \r.

Text would then think it reached the EOF and would stop reading. This changes the termination condition to just keep reading until it actually reaches an EOF.

@hvr hvr merged commit 1ffe752 into haskell:master Aug 1, 2018
hvr added a commit that referenced this pull request Aug 1, 2018
@hvr
Copy link
Member

hvr commented Aug 1, 2018

Thanks!

@Mistuke Mistuke deleted the issue-223-fix-hgetcontents branch August 1, 2018 09:26
@hvr hvr added this to the 1.2.3.1 milestone Aug 28, 2018
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.

Certain content is truncated upon read, on Windows
2 participants