summaryrefslogtreecommitdiff
path: root/Test/D07multibyte.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-07-18 16:56:34 +0100
committerPeter Stephenson <pws@zsh.org>2016-07-18 16:57:38 +0100
commit72e5fe7aab91e21d0d746ec7137a6e4e0b405e39 (patch)
treec6797d412f818c92bc502c1e6cf8d6f4887b737e /Test/D07multibyte.ztst
parentbd707b47875a5bc61b2bea2d7ffd2ed8738afcce (diff)
downloadzsh-72e5fe7aab91e21d0d746ec7137a6e4e0b405e39.tar.gz
zsh-72e5fe7aab91e21d0d746ec7137a6e4e0b405e39.zip
38879: Unmetafy file names for glob sort.
Test using Polish UTF-8 collation sequence that'w known to cause the problems.
Diffstat (limited to 'Test/D07multibyte.ztst')
-rw-r--r--Test/D07multibyte.ztst17
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index dedf2417a..1b1d042a8 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -562,3 +562,20 @@
}
: $functions)
0:Multibtye handled of functions parameter
+
+ if [[ -n ${$(locale -a 2>/dev/null)[(R)pl_PL.utf8]} ]]; then
+ (
+ export LC_ALL=pl_PL.UTF-8
+ local -a names=(a b c d e f $'\u0105' $'\u0107' $'\u0119')
+ print -o $names
+ mkdir -p plchars
+ cd plchars
+ touch $names
+ print ?
+ )
+ else
+ ZTST_skip="No Polish UTF-8 local found, skipping sort test"
+ fi
+0:Sorting of metafied Polish characters
+>a ą b c ć d e ę f
+>a ą b c ć d e ę f