From e24372e6d0f10ab54c3c387930246c5e66f40a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Wed, 4 Mar 2026 17:57:54 +0000
Subject: [PATCH] maint: tests: refactor uses of bad_unicode()
* init.cfg: Use 0xFF rather than 0xC3 everywhere.
* tests/fold/fold-characters.sh: Reuse bad_unicode().
* tests/tac/tac-locale.sh: Likewise.
---
init.cfg | 2 +-
tests/fold/fold-characters.sh | 7 +------
tests/tac/tac-locale.sh | 3 +--
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/init.cfg b/init.cfg
index ae02adcfd..0896d8dda 100644
--- a/init.cfg
+++ b/init.cfg
@@ -837,7 +837,7 @@ bad_unicode ()
require_built_ printf
# invalid UTF8|unpaired surrogate|C1 control|noncharacter
- env printf '\xC3|\xED\xBA\xAD|\u0089|\xED\xA6\xBF\xED\xBF\xBF\n'
+ env printf '\xFF|\xED\xBA\xAD|\u0089|\xED\xA6\xBF\xED\xBF\xBF\n'
}
# AIX has a 'strace' program unrelated to the one we care about. Avoid
diff --git a/tests/fold/fold-characters.sh b/tests/fold/fold-characters.sh
index 5af9856f6..6edaa9c05 100755
--- a/tests/fold/fold-characters.sh
+++ b/tests/fold/fold-characters.sh
@@ -83,12 +83,7 @@ env printf '\naaaa\n' >> exp3 || framework_failure_
fold --characters input3 | tail -n 4 > out3 || fail=1
compare exp3 out3 || fail=1
-# Sequence derived from