From 44fb0b83bae50e553efaa7f9d0895afed6d2da43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 29 Apr 2020 18:58:43 +0200 Subject: [PATCH] main: call setlocale() *after* loading fonts This ensures the fonts are instantiated while LC_NUMERICAL is "C", which required to handle FontConfig strings like "size=12.5". --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 4a23110..d93b869 100644 --- a/main.c +++ b/main.c @@ -176,8 +176,6 @@ print_pid(const char *pid_file, bool *unlink_at_exit) int main(int argc, char *const *argv) { - setlocale(LC_ALL, ""); - static const struct option longopts[] = { {"backend", required_argument, 0, 'b'}, {"config", required_argument, 0, 'c'}, @@ -321,6 +319,8 @@ main(int argc, char *const *argv) return 0; } + setlocale(LC_ALL, ""); + bar->abort_fd = abort_fd; thrd_t bar_thread;