-
-
Save anonymous/6e5154e8f447c573816b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/src/main/java/org/jruby/RubyGlobal.java b/core/src/main/java/org/jruby/RubyGlobal.java | |
index 131407a..810a931 100644 | |
--- a/core/src/main/java/org/jruby/RubyGlobal.java | |
+++ b/core/src/main/java/org/jruby/RubyGlobal.java | |
@@ -276,7 +276,7 @@ public class RubyGlobal { | |
} | |
private static Channel prepareStdioChannel(Ruby runtime, STDIO stdio, Object stream) { | |
- if (runtime.getPosix().isNative() && stdio.isJVMDefault(stream)) { | |
+ if (runtime.getPosix().isNative() && stdio.isJVMDefault(stream) && !Platform.IS_WINDOWS) { | |
// use real native channel for stdio | |
return new NativeDeviceChannel(stdio.fileno()); | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment