Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] MRI Kernel#gets always includes the trailing '\n'.
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.
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.