Commit b9c97546 authored by unknown's avatar unknown

BUG#23735 Changes to comments in code for explanation of fix.


client/mysqlbinlog.cc:
  BUG#23735 Corrections to comments in code for explaination of fix.
parent 70111f50
...@@ -1361,15 +1361,12 @@ static int dump_local_log_entries(const char* logname) ...@@ -1361,15 +1361,12 @@ static int dump_local_log_entries(const char* logname)
else // reading from stdin; else // reading from stdin;
{ {
/* /*
Bug fix: #23735 Windows opens stdin in text mode by default. Certain characters
Author: Chuck Bell such as CTRL-Z are interpeted as events and the read() method
Description: will stop. CTRL-Z is the EOF marker in Windows. to get past this
Windows opens stdin in text mode by default. Certain characters you have to open stdin in binary mode. Setmode() is used to set
such as CTRL-Z are interpeted as events and the read() method stdin in binary mode. Errors on setting this mode result in
will stop. CTRL-Z is the EOF marker in Windows. to get past this halting the function and printing an error message to stderr.
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.
*/ */
#if defined (__WIN__) || (_WIN64) #if defined (__WIN__) || (_WIN64)
if (_setmode(fileno(stdin), O_BINARY) == -1) if (_setmode(fileno(stdin), O_BINARY) == -1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment