diff -Nuar sudo-1.7.0/logging.c sudo-1.7.0-charset/logging.c --- sudo-1.7.0/logging.c 2008-11-09 16:13:12.000000000 +0200 +++ sudo-1.7.0-charset/logging.c 2009-12-02 14:12:28.745079291 +0200 @@ -54,6 +54,7 @@ #include #include #include +#include #include "sudo.h" @@ -571,8 +572,8 @@ mail = fdopen(pfd[1], "w"); /* Pipes are all setup, send message. */ - (void) fprintf(mail, "To: %s\nFrom: %s\nAuto-Submitted: %s\nSubject: ", - def_mailto, def_mailfrom ? def_mailfrom : user_name, "auto-generated"); + (void) fprintf(mail, "To: %s\nFrom: %s\nAuto-Submitted: %s\nContent-Type: text/plain; charset=\"%s\"\nContent-Transfer-Encoding: 8bit\nSubject: ", + def_mailto, def_mailfrom ? def_mailfrom : user_name, "auto-generated", nl_langinfo(CODESET)); for (p = def_mailsub; *p; p++) { /* Expand escapes in the subject */ if (*p == '%' && *(p+1) != '%') {