#if 1
is.getline(buff, sizeof(buff));
lyxerr[Debug::LYXLEX] << "Comment read: `" << c
- << buff << "'" << endl;
+ << buff << '\'' << endl;
#else
// unfortunately ignore is buggy (Lgb)
is.ignore(100, '\n');
#if 1
is.getline(buff, sizeof(buff));
lyxerr[Debug::LYXLEX] << "Comment read: `" << c
- << buff << "'" << endl;
+ << buff << '\'' << endl;
#else
// but ignore is also still buggy (Lgb)
// This is fast (Lgb)
is.get(cc);
c = cc;
} while (c > ' ' && c != ',' && is
- && (i != LEX_MAX_BUFF-1));
- if (i == LEX_MAX_BUFF-1) {
+ && (i != LEX_MAX_BUFF - 1));
+ if (i == LEX_MAX_BUFF - 1) {
printError("Line too long");
}
buff[i] = '\0';
keyword_item * res =
lower_bound(table, table + no_items,
search_tag, compare_tags());
+ // use the compare_ascii_no_case instead of compare_no_case,
+ // because in turkish, 'i' is not the lowercase version of 'I',
+ // and thus turkish locale breaks parsing of tags.
if (res != table + no_items
- && !compare_no_case(res->tag, tag))
+ && !compare_ascii_no_case(res->tag, tag))
return res->code;
return LEX_UNDEF;
}
is.get(cc);
c = cc;
//lyxerr[Debug::LYXLEX] << "LyXLex::EatLine read char: `"
- // << c << "'" << endl;
+ // << c << '\'' << endl;
if (c != '\r')
buff[i++] = c;
}
is.get(cc);
c = cc;
} while (c > ' ' && c != '\\' && is
- && i != (LEX_MAX_BUFF-1));
+ && i != (LEX_MAX_BUFF - 1));
} else {
do {
buff[i++] = c;
is.get(cc);
c = cc;
} while (c >= ' ' && c != '\\' && is
- && i != (LEX_MAX_BUFF-1));
+ && i != (LEX_MAX_BUFF - 1));
}
if (i == (LEX_MAX_BUFF - 1)) {