• Joshua Warner's avatar
    fix writeLineToFd for windows console output · c0fbfd9c
    Joshua Warner authored
    This function now (on windows):
    * converts \n to \r\n (for both file and console outputs)
    * when the output is redirected to a file, uses WriteFile with utf-8 output
    * when the output will appear on a console, uses WriteConsole with utf-16 output instead
    c0fbfd9c
main.c++ 24.8 KB