mirror of
https://github.com/MariaDB/server.git
synced 2025-09-05 08:04:25 +03:00
Bug#13809 mysql-test: --replace_result option works on Windows incorrect
This commit is contained in:
@@ -2517,10 +2517,16 @@ int read_line(char *buf, int size)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Line counting is independent of state */
|
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
|
{
|
||||||
|
/* Line counting is independent of state */
|
||||||
cur_file->lineno++;
|
cur_file->lineno++;
|
||||||
|
|
||||||
|
/* Convert cr/lf to lf */
|
||||||
|
if (p != buf && *(p-1) == '\r')
|
||||||
|
*(p-1)= 0;
|
||||||
|
}
|
||||||
|
|
||||||
switch(state) {
|
switch(state) {
|
||||||
case R_NORMAL:
|
case R_NORMAL:
|
||||||
/* Only accept '{' in the beginning of a line */
|
/* Only accept '{' in the beginning of a line */
|
||||||
|
Reference in New Issue
Block a user