]> granicus.if.org Git - cronie/commitdiff
Mail langinfo was fixed.
authorMarcela Mašláňová <mmaslano@redhat.com>
Mon, 13 Jul 2009 14:18:37 +0000 (16:18 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Mon, 13 Jul 2009 14:18:37 +0000 (16:18 +0200)
anacron/runjob.c

index 7d55176e959246ab4bb8cfbb95b3eb8ad7206e12..23e69e5b022fdbaf5afea95366104b8b9d78904e 100644 (file)
@@ -35,6 +35,8 @@
 #include <string.h>
 #include "global.h"
 
+#include <langinfo.h>
+
 static int
 temp_file()
 /* Open a temporary file and return its file descriptor */
@@ -247,6 +249,9 @@ launch_job(job_rec *jr)
        xwrite(fd, username());
     }
     xwrite(fd, "\n");
+    xwrite(fd, "Content-Type: text/plain; charset=\"");
+    xwrite(fd, nl_langinfo(CODESET));
+    xwrite(fd, "\"\n");
     xwrite(fd, "Subject: Anacron job '");
     xwrite(fd, jr->ident);
     xwrite(fd, "' on ");