Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Test "failure" on multibyte conversions
- X-seq: zsh-workers 52188
- From: "Jun. T" <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Test "failure" on multibyte conversions
- Date: Wed, 27 Sep 2023 02:13:44 +0900
- Archived-at: <https://zsh.org/workers/52188>
- In-reply-to: <CAH+w=7ah5jzkrmfaE3=+3hd2PEnzQSA6fsD-diMJqwTyR3ZoaQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7ahJv0_X0VQEGJEnHxAEOx=hhiXHW-iJ-UuYeJduFU1qA@mail.gmail.com> <E8375CF7-7CD3-42B7-A89C-2DE3C7F053E7@kba.biglobe.ne.jp> <CAH+w=7ah5jzkrmfaE3=+3hd2PEnzQSA6fsD-diMJqwTyR3ZoaQ@mail.gmail.com>
> 2023/09/24 23:00, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> I think it may be
> the one and only test that fails with --disable-multibyte
Skip two test hunks.
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 12ae1a446..c2008582c 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author