1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

unposted: Fix bad encoding in previous Y01 test patch

This commit is contained in:
dana 2019-05-08 18:23:33 -05:00
parent 09c6acf7b2
commit cebec8926a
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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'