Comment 11 for bug 491352

Revision history for this message
Benjamin Drung (bdrung) wrote :

Hi, I tried to check all sudo bugs with attached patches. Sadly the upstream bug link is broken. So I cannot follow-up the upstream progress. The git history revealed no reference to bug number 457.

Looking at the upstream code, I found following in lib/eventlog/eventlog.c:

#if defined(HAVE_NL_LANGINFO) && defined(CODESET)
    locale = setlocale(LC_ALL, NULL);
    if (locale[0] != 'C' || locale[1] != '\0')
 (void) fprintf(mail, "\nContent-Type: text/plain; charset=\"%s\"\nContent-Transfer-Encoding: 8bit", nl_langinfo(CODESET));
#endif /* HAVE_NL_LANGINFO && CODESET */

So I assume that it was fixed upstream. This code snippet was introduced in commit bd1ca79cca827a92e904f022e49df121931d4ff5 and was part of sudo 1.9.4 which landed in Ubuntu 22.04 (jammy).

If my assumption is wrong, please reopen this bug report.