From: Kiyoshi OHGISHI Date: Mon, 16 May 2011 13:56:43 +0000 (+0200) Subject: The charset of anacron's mail is always ANSI_X3.4-1968. There are no setlocale is... X-Git-Tag: cronie1.4.8~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc4f943025593525a3acce0bbd5a3942080d3d2a;p=cronie The charset of anacron's mail is always ANSI_X3.4-1968. There are no setlocale is anacron's source. Signed-off-by: Marcela Mašláňová --- diff --git a/anacron/main.c b/anacron/main.c index c1a97e9..00c6a4e 100644 --- a/anacron/main.c +++ b/anacron/main.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "global.h" #include "gregor.h" @@ -442,6 +443,8 @@ main(int argc, char *argv[]) anacrontab = NULL; spooldir = NULL; + setlocale(LC_ALL, ""); + if (gettimeofday(&tv, &tz) != 0) explain("Can't get exact time, failure.");