main: spell out the most common reason for setlocale() to fail

This commit is contained in:
Daniel Eklöf 2024-08-11 11:11:38 +02:00
parent 6d351ffc43
commit cee0c5423a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

3
main.c
View file

@ -425,7 +425,8 @@ main(int argc, char *const *argv)
* that does not exist on this system, then the above call may return * that does not exist on this system, then the above call may return
* NULL. We should just continue with the fallback method below. * NULL. We should just continue with the fallback method below.
*/ */
LOG_ERR("setlocale() failed"); LOG_ERR("setlocale() failed. The most common cause is that the "
"configured locale is not available, or has been misspelled");
} }
LOG_INFO("locale: %s", locale != NULL ? locale : "<invalid>"); LOG_INFO("locale: %s", locale != NULL ? locale : "<invalid>");