Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test "failure" on multibyte conversions



> 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