Bug 457

Summary: Include charset info in sudo notification emails
Product: Sudo Reporter: Lorenzo De Liso <blackzldl>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: low    
Version: 1.8.0   
Hardware: PC   
OS: Linux   

Description Lorenzo De Liso 2010-12-15 10:17:36 MST
From https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/491352 :

https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/491352/+attachment/1056304/+files/sudo-1.7.0-charset.patch

The following patch comes from Jesse Long.

Please give us any feedback. Thanks.
Comment 1 Todd C. Miller 2010-12-15 13:05:47 MST
Ideally sudo could use the default locale for the system but there is no portable way of determining that.  It is probably safest to just use ctime().
Comment 2 Todd C. Miller 2011-01-28 16:15:05 MST
Sudo 1.7.5 will do logging and email sending are in the locale specified by the "sudoers_locale" setting ("C" by default).  Email send by sudo will include MIME headers when the sudoers locale is not "C".
Comment 3 Todd C. Miller 2011-03-03 09:52:29 MST
Fixed in sudo 1.7.5 and 1.8.0.