My fix seems to have been removed on master (probably during native IO translation work). @headius can you see if this can be re-shoehorned in. I am guessing native path is not being called and non-native should have #1198 re-applied.
FWIW, most of the divergence between native and non-native is wrapped up inside PosixShim, which has native and non-native paths. That lives at the level of a C library "write" call, for example. The rest of the ported MRI code I tried to keep as close to MRI as possible and abstract those native/non paths elsewhere.
Fix coming. I don't have Windows handy to test, but perhaps we poke the nightly build and give @carlosmrce a build to confirm with, ok?
Note for future: System.console() can return null when stdio is not connected to a console, causing this fix to blow up in subprocesses. I'm adding a null check that will act similar to the TTY check in the MRI code.
I posted an issue a while back, but it seems to be back!!!
Original issue: #1198
Just tested on MS-Windows and Linux, and the bug still exists.
The text was updated successfully, but these errors were encountered: