Fix Windows debug mode
I mistakenly removed the call to ruby_sysinit
on Windows in debug mode. This PR inserts it back in, and hopefully fixes debug mode for good by opening calling _open_osfhandle
alongside freopen_s
and not after initializing Ruby.
win-consoleutils.h
has been split to win-consoleutils.h
and win-consoleutils.cpp
.
Edited by Joni Savolainen