only accept lower case to be consistent with the rest of the input

This commit is contained in:
Axel Kohlmeyer
2021-09-21 14:18:23 -04:00
parent 6227396afd
commit c3d34e8656
2 changed files with 2 additions and 3 deletions

View File

@ -372,7 +372,6 @@ int utils::logical(const char *file, int line, const char *str, bool do_abort, L
// convert to ascii and lowercase
std::string buf(str);
if (has_utf8(buf)) buf = utf8_subst(buf);
std::transform(buf.begin(), buf.end(), buf.begin(), tolower);
int rv = 0;
if ((buf == "yes") || (buf == "on") || (buf == "true") || (buf == "1")) {