]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use C.UTF-8 if available, and en_US.UTF-8 is available, otherwise do nothing and...
authorOndřej Surý <ondrej@sury.org>
Fri, 23 Mar 2018 11:14:18 +0000 (11:14 +0000)
committerStephen Morris <stephen@isc.org>
Wed, 4 Apr 2018 13:42:08 +0000 (09:42 -0400)
bin/tests/system/idna/tests.sh

index b4aaf6e71b404ee4ecea7046f28e8a1e972180e6..19a086dff2debdfb5fd31d82965de81411b23b8b 100644 (file)
@@ -11,9 +11,13 @@ SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
 # Set known locale for the tests
-LC_ALL="en_US.UTF-8"
-export LC_ALL
 
+if locale -a | grep -qE "^C\\.(UTF-8|utf8)"; then
+    LC_ALL="C.UTF-8"
+elif locale -a | grep -qE "^en_US\\.(UTF-8|utf8)"; then
+    LC_ALL="en_US.UTF-8"
+fi
+export LC_ALL
 
 # This set of tests check the behavior of the IDNA options in "dig".
 #