• unknown's avatar
    Bug#23735 mysqlbinlog client fails when reading binlog from stdin · 29ff97f8
    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
    29ff97f8
mysqlbinlog.cc 46 KB