Skip to content

Commit 5df6bce

Browse files
committed
[Truffle] MRI Kernel#gets always includes the trailing '\n'.
And it's always '\n' regardles of platform.
1 parent 4ce2eac commit 5df6bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffle/src/main/java/org/jruby/truffle/nodes/core/KernelNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ public String block() throws InterruptedException {
876876
@TruffleBoundary
877877
private static String gets(BufferedReader reader) throws InterruptedException {
878878
try {
879-
return reader.readLine();
879+
return reader.readLine() + "\n";
880880
} catch (IOException e) {
881881
throw new RuntimeException(e);
882882
}

0 commit comments

Comments
 (0)