aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-08-11 09:11:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-08-13 15:33:31 +0000
commitcee0c5423ae1b306fc85960058adfd9574e4c91b (patch)
treec098950a53e09d63ed7b24a68180b1d4fbad81d5
parentmain: invalid locale != non-UTF-8 locale (diff)
main: spell out the most common reason for setlocale() to fail
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index b2266d88..15741012 100644
--- a/main.c
+++ b/main.c
@@ -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>");