Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > 4090922c88d76dcb9d3d77a391885b7d > files > 3

anacron-2.3-30mdv2009.1.src.rpm

--- runjob.c	2008-12-29 17:39:24.000000000 +0100
+++ runjob.c.oden	2008-12-29 17:39:33.000000000 +0100
@@ -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 ");