• unknown's avatar
    Bug#23735 mysqlbinlog client fails when reading binlog from stdin · f5b9cb0d
    unknown 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.
    
    
    client/mysqlbinlog.cc:
      Apply fix to 5.0 as well
    f5b9cb0d
mysqlbinlog.cc 46 KB