diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-08-11 09:11:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-08-13 15:33:31 +0000 |
| commit | cee0c5423ae1b306fc85960058adfd9574e4c91b (patch) | |
| tree | c098950a53e09d63ed7b24a68180b1d4fbad81d5 | |
| parent | main: invalid locale != non-UTF-8 locale (diff) | |
main: spell out the most common reason for setlocale() to fail
| -rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -425,7 +425,8 @@ main(int argc, char *const *argv) * that does not exist on this system, then the above call may return * 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>"); |
