Skip to content

Commit

Permalink
Allow external locale (github #66)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonCactus committed Mar 19, 2021
1 parent 7c5bfd0 commit f239ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ttyclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ void
init(void)
{
struct sigaction sig;
setlocale(LC_TIME,"");

ttyclock.bg = COLOR_BLACK;

/* Return codes:
Expand Down
2 changes: 1 addition & 1 deletion ttyclock.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <locale.h>
#include <time.h>
#include <unistd.h>

#include <ncurses.h>

/* Macro */
Expand Down

0 comments on commit f239ebc

Please sign in to comment.