summary refs log tree commit diff
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-05-08 18:23:33 -0500
committerdana <dana@dana.is>2019-05-08 18:23:33 -0500
commitcebec8926a31db3ed2dccca7d2b317ac8baa6afc (patch)
tree479a063441bdd7cd832071a8421ac664e1ca001a
parent09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7 (diff)
downloadzsh-cebec8926a31db3ed2dccca7d2b317ac8baa6afc.tar.gz
zsh-cebec8926a31db3ed2dccca7d2b317ac8baa6afc.tar.xz
zsh-cebec8926a31db3ed2dccca7d2b317ac8baa6afc.zip
unposted: Fix bad encoding in previous Y01 test patch
-rw-r--r--ChangeLog2
-rw-r--r--Test/Y01completion.ztst8
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6bbcd81ec..979327c70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,8 @@
 
 2019-05-08  dana  <dana@dana.is>
 
+	* unposted: Test/Y01completion.ztst: Fix bad encoding
+
 	* Oliver Kiddle: unposted: Test/Y01completion.ztst: Add compset tests
 	related to workers/44275
 
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index 9c2eaaa5f..7ef319f7b 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -6,7 +6,7 @@
   langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
          $(locale -a 2>/dev/null | egrep 'utf8|UTF-8'))
   for LANG in $langs; do
-    if [[ ?? = ? ]]; then
+    if [[ é = ? ]]; then
       ZSH_TEST_LANG=$LANG
       break;
     fi
@@ -139,11 +139,11 @@ F:regression test workers/31611
     ZTST_skip="no UTF-8 locale for multibyte completion test"
   else
     comptesteval '_tst() { compset -p 1; _message "${(qq)IPREFIX} ${(qq)PREFIX}" }'
-    comptest $'tst ???100\t'
+    comptest $'tst €100\t'
   fi
 0:remove multibyte character from a prefix
->line: {tst ???100}{}
->MESSAGE:{'???' '100'}
+>line: {tst €100}{}
+>MESSAGE:{'€' '100'}
 
   comptesteval "_tst() { compadd -U -s : -S / -I . word; compstate[to_end]= }"
   comptest $'tst .\C-b\t'