about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-01-22 14:35:12 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-01-22 14:35:12 +0000
commite375d5ee8817e7f98d0a2f37cfb7566b8572d0e0 (patch)
tree4fcda72583f7a2f899be950db94b24017aa3e0ce /Test
parentc53aa4adee9236a08d2d88c6e753588760b88f0e (diff)
downloadzsh-e375d5ee8817e7f98d0a2f37cfb7566b8572d0e0.tar.gz
zsh-e375d5ee8817e7f98d0a2f37cfb7566b8572d0e0.tar.xz
zsh-e375d5ee8817e7f98d0a2f37cfb7566b8572d0e0.zip
23119: lower case in sorting properly
Diffstat (limited to 'Test')
-rw-r--r--Test/B03print.ztst7
-rw-r--r--Test/D07multibyte.ztst11
2 files changed, 17 insertions, 1 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index c3ba42b18..92a24d6b6 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -34,7 +34,12 @@
 >baz
 >bar
 
- print -io a B c
+# some locales force case-insensitive sorting
+ (LC_ALL=C; print -o a B c)
+0:case-sensitive argument sorting
+>B a c
+
+ (LC_ALL=C; print -io a B c)
 0:case-insensitive argument sorting
 >a B c
 
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index ecac737a1..c3a24c067 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -2,6 +2,8 @@
 
 # Find a UTF-8 locale.
   setopt multibyte
+# Don't let LC_* override our choice of locale.
+  unset -m LC_\*
   mb_ok=
   langs=(en_US.UTF-8 en_GB.UTF-8 en.UTF-8
 	 $(locale -a 2>/dev/null | sed -e 's/utf8/UTF-8/' | grep UTF-8))
@@ -315,3 +317,12 @@
   printf "%4.3s\n" főobar
 0:Multibyte characters in printf widths
 > főo
+
+# We ask for case-insensitive sorting here (and supply upper case
+# characters) so that we exercise the logic in the shell that lowers the
+# case of the string for case-insensitive sorting.
+  print -oi HAH HUH HEH HÉH HÈH
+  (LC_ALL=C; print -oi HAH HUH HEH HÉH HÈH)
+0:Multibyte characters in print sorting
+>HAH HEH HÉH HÈH HUH
+>HAH HEH HUH HÈH HÉH