• msvensson@neptunus.(none)'s avatar
    Bug#23735 mysqlbinlog client fails when reading binlog from stdin · 4e34f77c
    msvensson@neptunus.(none) authored
     - Windows opens stdin in text mode by default. Certain characters
       such as CTRL-Z are interpeted as events and the read() method
       will stop. CTRL-Z is the EOF marker in Windows. to get past this
       you have to open stdin in binary mode. Setmode() is used to set
       stdin in binary mode. Errors on setting this mode result in
       halting the function and printing an error message to stderr.
    4e34f77c
mysqlbinlog.cc 46 KB