main: only set LC_CTYPE

This is the only locale variable we need. This ensures LC_NUMERIC in
particular remains as "C", which is needed by fcft when instantiating
new fonts.
This commit is contained in:
Daniel Eklöf 2020-04-29 20:09:41 +02:00
parent 589e984b91
commit 242bcb9550
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
main.c
View file

@ -310,7 +310,7 @@ main(int argc, char *const *argv)
return ret;
}
setlocale(LC_ALL, "");
setlocale(LC_CTYPE, "");
LOG_INFO("locale: %s", setlocale(LC_CTYPE, NULL));
if (!locale_is_utf8()) {
LOG_ERR("locale is not UTF-8");