]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Use LC_ALL for auth-nonascii test, not LC_CTYPE
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 14 Aug 2017 12:21:18 +0000 (13:21 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 14 Aug 2017 12:21:18 +0000 (13:21 +0100)
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 <dwmw2@infradead.org>
tests/auth-nonascii

index d930b117d29cb612e32d1c23a067861e8b8a3c6f..1da8de25464af29b7136a3bd14f4ba4c28612d1a 100755 (executable)
@@ -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