Bug 672

Summary: make check fails if running in the environment with non-english/C locale settings
Product: Sudo Reporter: chaonautic
Component: SudoersAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal CC: chaonautic
Priority: normal    
Version: 1.8.11   
Hardware: PC   
OS: Linux   
Attachments: console output with ukrainian locale (check fails) and then with C locale (check passes).

Description chaonautic 2014-10-14 07:26:58 MDT
Created attachment 434 [details]
console output with ukrainian locale (check fails) and then with C locale (check passes).

when running „make check“ after sudo compilation in the environment with non-english/C locale settings, it fails (see attachment for the output).

if locale is set to C or en_US (not tested with other english locales), „make check“ for the same compilation succeeds.

as far i can see, failing tests rely on error messages instead of locale-agnostic exit codes or so.
Comment 1 Todd C. Miller 2014-10-14 08:56:23 MDT
I've committed a change to run those tests in the C locale, http://www.sudo.ws/repos/sudo/rev/adf7997a0a65

Those tests use visudo and testsudoers so they need to be run in the C locale so that the output matches.
Comment 2 Todd C. Miller 2015-02-09 15:12:52 MST
Fixed in sudo 1.8.12, available now.