logo

utils-std

Collection of commonly available Unix tools
commit: 1d99f8e0247a2ccaf3dfdbbb1f1326495a3bec6c
parent 6279ef44b058d2a44d71558c819458820a8cc3da
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 21 Apr 2024 18:44:07 +0200

cmd/date: Uncomment setlocale

Diffstat:

Mcmd/date.c3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/date.c b/cmd/date.c @@ -8,6 +8,7 @@ #include "../lib/iso_parse.h" /* iso_parse */ #include <errno.h> /* errno */ +#include <locale.h> /* setlocale */ #include <locale.h> /* setlocale() */ #include <stdio.h> /* BUFSIZ, perror(), puts() */ #include <stdlib.h> /* exit(), strtol() */ @@ -33,7 +34,7 @@ main(int argc, char *argv[]) int dflag = 0; int c; - //setlocale(LC_ALL, ""); + setlocale(LC_ALL, ""); now = time(NULL); if(now == (time_t)-1)