aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-29 18:09:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-29 18:09:41 +0000
commit242bcb9550456f24d0f4134dc232bad3fc7f27d3 (patch)
treea3fdee51a4a176b22d16ceb3c8762fa534fe4e0f /main.c
parentterm: font size adjust: re-load fonts in parallel (diff)
main: only set LC_CTYPE
This is the only locale variable we need. This ensures LC_NUMERIC in particular remains as "C", which is needed by fcft when instantiating new fonts.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 906f0d37..f47fa036 100644
--- a/main.c
+++ b/main.c
@@ -310,7 +310,7 @@ main(int argc, char *const *argv)
return ret;
}
- setlocale(LC_ALL, "");
+ setlocale(LC_CTYPE, "");
LOG_INFO("locale: %s", setlocale(LC_CTYPE, NULL));
if (!locale_is_utf8()) {
LOG_ERR("locale is not UTF-8");