aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-05-14 07:14:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-05-14 07:14:57 +0000
commit7e8b5f961037e15f1ccb76c6058616a03b317c82 (patch)
treea2bdee2e8644f493f83aec4c427cd6f4b27218b9
parentmeson: -Dsystemd-units-dir installs even if systemd is not found (diff)
main: minor rewording of non-UTF8 locale warnings and errors
-rw-r--r--main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.c b/main.c
index 56fc1a01..4617a3c7 100644
--- a/main.c
+++ b/main.c
@@ -455,12 +455,12 @@ main(int argc, char *const *argv)
const char *const fallback_locale = fallback_locales[i];
if (setlocale(LC_CTYPE, fallback_locale) != NULL) {
- LOG_WARN("locale '%s' is not UTF-8, using '%s' instead",
+ LOG_WARN("'%s' is not a UTF-8 locale, using '%s' instead",
locale, fallback_locale);
user_notification_add_fmt(
&user_notifications, USER_NOTIFICATION_WARNING,
- "locale '%s' is not UTF-8, using '%s' instead",
+ "'%s' is not a UTF-8 locale, using '%s' instead",
locale, fallback_locale);
bad_locale = false;
@@ -469,13 +469,13 @@ main(int argc, char *const *argv)
}
if (bad_locale) {
- LOG_ERR("locale '%s' is not UTF-8, "
- "and failed to enable a fallback locale", locale);
+ LOG_ERR(
+ "'%s' is not a UTF-8 locale, and failed to find a fallback",
+ locale);
user_notification_add_fmt(
&user_notifications, USER_NOTIFICATION_ERROR,
- "locale '%s' is not UTF-8, "
- "and failed to enable a fallback locale",
+ "'%s' is not a UTF-8 locale, and failed to find a fallback",
locale);
}
}