tests: use en_US.UTF-8 locale on macOS
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 19 Jan 2018 13:43:38 +0000 (08:43 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 19 Jan 2018 13:43:38 +0000 (08:43 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

tests/tests.sh

index 9587665..77da70a 100755 (executable)
 # Set lang do default to avoid failed tests because of locale
 export LANG=C.UTF-8
 export LC_ALL=C.UTF-8
+if uname | grep Darwin 1>/dev/null 2>&1; then
+       export LANG=en_US.UTF-8
+       export LC_ALL=en_US.UTF-8
+fi
+
 export NIT_TESTING=true
 # Use the pid as a collision prevention
 export NIT_TESTING_ID=$$