From: Marcela Mašláňová Date: Mon, 13 Jul 2009 14:18:37 +0000 (+0200) Subject: Mail langinfo was fixed. X-Git-Tag: cronie1.4~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8060bcb0b40ab6255fa622b5cb3c78d63564f5c7;p=cronie Mail langinfo was fixed. --- diff --git a/anacron/runjob.c b/anacron/runjob.c index 7d55176..23e69e5 100644 --- a/anacron/runjob.c +++ b/anacron/runjob.c @@ -35,6 +35,8 @@ #include #include "global.h" +#include + 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 ");