mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Disable localizations during tests
This commit is contained in:
parent
184110c2e7
commit
94a3203c74
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue