From 242bcb9550456f24d0f4134dc232bad3fc7f27d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 29 Apr 2020 20:09:41 +0200 Subject: [PATCH] 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. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");