main: log locale

This commit is contained in:
Daniel Eklöf 2020-04-21 19:02:18 +02:00
parent 4ca6e760f2
commit 77af910330
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

1
main.c
View file

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