Skip to content

Commit

Permalink
[Truffle] MRI Kernel#gets always includes the trailing '\n'.
Browse files Browse the repository at this point in the history
And it's always '\n' regardles of platform.
  • Loading branch information
nirvdrum committed Feb 5, 2015
1 parent 4ce2eac commit 5df6bce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ public String block() throws InterruptedException {
@TruffleBoundary
private static String gets(BufferedReader reader) throws InterruptedException {
try {
return reader.readLine();
return reader.readLine() + "\n";
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 5df6bce

Please sign in to comment.