about summary refs log tree commit diff
path: root/Test/ztst.zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-05-03 09:24:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-05-03 09:24:47 +0000
commite6a6cab83cf81e1cae7417d4555ed58514375ef1 (patch)
tree9086d13fd1c2b17001f4a2b62ad4d73c71b84668 /Test/ztst.zsh
parent43e44f06b7933ee86b7d26b2a1a344971431f8d5 (diff)
downloadzsh-e6a6cab83cf81e1cae7417d4555ed58514375ef1.tar.gz
zsh-e6a6cab83cf81e1cae7417d4555ed58514375ef1.tar.xz
zsh-e6a6cab83cf81e1cae7417d4555ed58514375ef1.zip
11096: Use C locale for tests
Diffstat (limited to 'Test/ztst.zsh')
-rwxr-xr-xTest/ztst.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index 32217bb3d..69306cb81 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -22,6 +22,11 @@
 # still not be good enough.  Maybe we should trick it somehow.
 emulate -R zsh
 
+# Ensure the locale does not screw up sorting.  Don't supply a locale
+# unless there's one set, to minimise problems.
+[[ -n $LC_ALL ]] && LC_ALL=C
+[[ -n $LANG ]] && LANG=C
+
 # Set the module load path to correspond to this build of zsh.
 # This Modules directory should have been created by "make check".
 [[ -d Modules/zsh ]] && module_path=( $PWD/Modules )