aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-11-25 00:52:22 -0800
committerGravatar Kevin Ballard <kevin@sb.org>2014-11-25 01:44:58 -0800
commit94a3203c74802d207c05d9bbfea57ddfd8aff0ee (patch)
treee39ccf6f2a81d27b9d40d47c6aad924169ac8e65 /tests
parent184110c2e78fccc67bfd6e7fa2f940d381a9781e (diff)
Disable localizations during tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_util.fish b/tests/test_util.fish
index 52ede4b3..2c64d366 100644
--- a/tests/test_util.fish
+++ b/tests/test_util.fish
@@ -44,6 +44,13 @@ if not set -q __fish_is_running_tests
set -l escaped_config (printf '%s/fish' $XDG_CONFIG_HOME | sed -e 's/[\'\\\\]/\\\\&/g'); or die
printf 'set fish_function_path \'%s/functions\' \'%s/share/functions\'\n' $escaped_config $escaped_parent > $XDG_CONFIG_HOME/fish/config.fish; or die
set -xl __fish_is_running_tests $XDG_CONFIG_HOME
+ # set locale information to be consistent
+ set -lx LANG C
+ set -lx LC_ALL ''
+ for var in ALL COLLATE MESSAGES MONETARY NUMERIC TIME
+ set -lx LC_$var ''
+ end
+ set -lx LC_CTYPE en_US.UTF-8
exec ../fish $script
die 'exec failed'
else if test "$__fish_is_running_tests" != "$XDG_CONFIG_HOME"