nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac41158
)
tests: use en_US.UTF-8 locale on macOS
author
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 19 Jan 2018 13:43:38 +0000
(08:43 -0500)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/tests/tests.sh
b/tests/tests.sh
index
9587665
..
77da70a
100755
(executable)
--- a/
tests/tests.sh
+++ b/
tests/tests.sh
@@
-20,6
+20,11
@@
# 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=$$