|
Bugzilla – Full Text Bug Listing |
| Summary: | many tests fails if strange locale is set | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Marc Haber <mh+sudo-bugzilla> |
| Component: | Cvtsudoers | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | low | ||
| Priority: | low | ||
| Version: | 1.9.8 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Hi, Debian's quality assurance tries building with real strange locales active. This is part of the CI pipeline. Reproduce with both 1.9.8p2 and 1.9.9p1: LC_ALL=ru_RU.CP1251 LANGUAGE=ru_RU.CP1251:fr ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking -v --with-all-insults --with-pam --with-pam-login --with-fqdn --with-logging=syslog --with-logfac=authpriv --with-env-editor --with-editor=/usr/bin/editor --with-exampledir=/usr/share/doc/sudo/examples --with-timeout=15 --with-password-timeout=0 "--with-passprompt=[sudo] password for %p: " --disable-root-mailer --with-sendmail=/usr/sbin/sendmail --with-rundir=/run/sudo --with-sssd --with-sssd-lib=/usr/lib/x86_64-linux-gnu --enable-zlib=system --with-selinux --with-linux-audit --enable-tmpfiles.d=yes --with-ldap --with-ldap-conf-file=/etc/sudo-ldap.conf LC_ALL=ru_RU.CP1251 LANGUAGE=ru_RU.CP1251:fr make LC_ALL=ru_RU.CP1251 LANGUAGE=ru_RU.CP1251:fr make check A quick fix seems to be setting LC_ALL=C and LANGUAGE=C in ./plugins/sudoers/regress/cvtsudoers/test26.sh. I cannot comment whether this change makes actual sense. Other tests seem to have the same issue, it looks like cvtsudoers/test32 9/13 visudo tests, 16/17 testusoders tests, sudoers/test18 seem to be also affected. Greetings Marc