config: parse_key_combos: lower case manually, instead of calling tolower()

tolower() is locale dependent, something we do not want in this case.
This commit is contained in:
Daniel Eklöf 2021-02-28 11:38:33 +01:00
parent 3a4f6c469b
commit 1b4d9eade0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1202,7 +1202,7 @@ parse_key_combos(struct config *conf, const char *combos, key_combo_list_t *key_
"shifted keys not supported with explicit \033[1mShift\033[m "
"modifier",
path, lineno, section, option, combo);
*key = tolower(*key);
*key = *key - 'A' + 'a';
}
/* Translate key name to symbol */