]> granicus.if.org Git - cronie/commitdiff
The charset of anacron's mail is always ANSI_X3.4-1968. There are no setlocale is...
authorKiyoshi OHGISHI <ohgishi@gaia.eonet.ne.jp>
Mon, 16 May 2011 13:56:43 +0000 (15:56 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Mon, 16 May 2011 13:56:43 +0000 (15:56 +0200)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
anacron/main.c

index c1a97e96677033f0496c612e0c0efb403056b4b4..00c6a4e9dc1b2e41daa1c3e71f453d4a7adcedd1 100644 (file)
@@ -33,6 +33,7 @@
 #include <sys/stat.h>
 #include <string.h>
 #include <stdlib.h>
+#include <locale.h>
 #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.");