From 08f457257bf8a7ccf107707c3aebf36a3961975c Mon Sep 17 00:00:00 2001 From: "Jeremie Francois (on omega)" Date: Fri, 19 Mar 2021 16:58:13 +0100 Subject: [PATCH] Allow external locale (github #66) --- ttyclock.c | 2 ++ ttyclock.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ttyclock.c b/ttyclock.c index edefe24..ac92942 100644 --- a/ttyclock.c +++ b/ttyclock.c @@ -37,6 +37,8 @@ void init(void) { struct sigaction sig; + setlocale(LC_TIME,""); + ttyclock.bg = COLOR_BLACK; /* Init ncurses */ diff --git a/ttyclock.h b/ttyclock.h index ea56723..9ec406d 100644 --- a/ttyclock.h +++ b/ttyclock.h @@ -44,9 +44,9 @@ #include #include #include +#include #include #include - #include /* Macro */