From: David Woodhouse Date: Mon, 14 Aug 2017 12:21:18 +0000 (+0100) Subject: Use LC_ALL for auth-nonascii test, not LC_CTYPE X-Git-Tag: v8.00~137 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=314dafa830c2a28a2411fa2a90efb199144e179f;p=users%2Fdwmw2%2Fopenconnect.git Use LC_ALL for auth-nonascii test, not LC_CTYPE Mike Miller points out that LC_ALL has precedence over LC_CTYPE, so the test fails when LC_ALL is set to something different. Signed-off-by: David Woodhouse --- diff --git a/tests/auth-nonascii b/tests/auth-nonascii index d930b117..1da8de25 100755 --- a/tests/auth-nonascii +++ b/tests/auth-nonascii @@ -34,7 +34,7 @@ set -x for CHARSET in UTF-8 ISO8859-2; do echo -n "Connecting to obtain cookie (with password charset ${CHARSET})... " CERTARGS="-c ${KEY} --key-password $(cat ${srcdir}/pass-${CHARSET})" - ( echo "test" | LC_CTYPE=cs_CZ.${CHARSET} LD_PRELOAD=libsocket_wrapper.so $OPENCONNECT -q $ADDRESS:443 -u test $CERTARGS --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly --passwd-on-stdin ) || + ( echo "test" | LC_ALL=cs_CZ.${CHARSET} LD_PRELOAD=libsocket_wrapper.so $OPENCONNECT -q $ADDRESS:443 -u test $CERTARGS --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly --passwd-on-stdin ) || fail $PID "Could not connect with charset ${CHARSET}!" done