1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-19 06:26:04 +02:00

52188: skip tests that fail if multibyte is not available

This commit is contained in:
Jun-ichi Takimoto 2023-09-27 23:45:00 +09:00
parent 02e33c54d8
commit 1b8446e1cd
2 changed files with 17 additions and 6 deletions

View File

@ -1,5 +1,8 @@
2023-09-27 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 52188: Test/D04parameter.ztst: skip tests that fail if
multibyte is not available
* 52169: Src/subst.c, Src/utils.c: a few more improvemets of (#)
2023-09-23 Bart Schaefer <schaefer@BartMAC2014.local>

View File

@ -2807,21 +2807,29 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
0:${(#)...}: array of bad math expressions, printf
>az
: ${(#X):-0x80}
if [[ ! -o multibyte ]]; then
ZTST_skip='(#X) accepts any byte if multibyte is off'
else
: ${(#X):-0x80}
fi
1:${(#X)...}: out-of-range character
?(eval):1: character not in range
?(eval):4: character not in range
[[ ${(#):-0x80} = $'\x80' ]] && echo OK
0:${(#)...}: out-of-range character
>OK
a=( 0x80 0x81 )
: ${(#X)a}
1:${(#X)...}: array of out-of-range characters
?(eval):2: character not in range
printf "%s\n" ${(#)a} |
while read x; do echo $(( #x )); done
0:${(#)...}: array of out-of-range characters
>128
>129
if [[ ! -o multibyte ]]; then
ZTST_skip='(#X) accepts any byte if multibyte is off'
else
: ${(#X)a}
fi
1:${(#X)...}: array of out-of-range characters
?(eval):4: character not in range