about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-02-27 20:03:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-02-27 20:03:21 +0000
commit3dd3f72bd91355e4e01711b12cfe1437f65732b4 (patch)
treed8bf83834c53fb0adc038d31f77650430af3c48e /Test
parenta6cf8b340c14cddfec0a2c1ff1cc1cf9401fb701 (diff)
downloadzsh-3dd3f72bd91355e4e01711b12cfe1437f65732b4.tar.gz
zsh-3dd3f72bd91355e4e01711b12cfe1437f65732b4.tar.xz
zsh-3dd3f72bd91355e4e01711b12cfe1437f65732b4.zip
24618: avoid problems with sorting of UTF-8 characters by using sort
Diffstat (limited to 'Test')
-rw-r--r--Test/D07multibyte.ztst10
1 files changed, 8 insertions, 2 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 2ebea2e10..a6601f7f3 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -322,10 +322,16 @@
 # 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
+# As all letters are upper case, however, sort should produce the same order.
+  print -loi HAH HUH HEH HÉH HÈH >zshsort.txt
+  print -l HAH HUH HEH HÉH HÈH | sort >sortsort.txt
+  print Diff output should be empty
+  diff zshsort.txt sortsort.txt
+  print Sort in C locale
   (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
+>Diff output should be empty
+>Sort in C locale
 >HAH HEH HUH HÈH HÉH
 
 # These are control characters in Unicode, so don't show up.