gbranden pushed a commit to branch master
in repository groff.
commit c16f30e60b22a5d7c1dec2dcd4507ed00f5b94ce
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jan 27 12:39:39 2026 -0600
[tbl]: Fix spurious test failure on {Open,Net}BSD.
* src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh: Fix
excessively strict regex, which caused test failure with OpenBSD
od(1) (and NetBSD's), because that implementation spaces the columns
of its output more widely than GNU coreutils's od(1). Thanks to Bruno
Haible for the report.
---
ChangeLog | 8 ++++++++
src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh | 8 +++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d7cde1f23..0d34aa468 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-01-27 G. Branden Robinson <[email protected]>
+
+ * src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh:
+ Fix excessively strict regex, which caused test failure with
+ OpenBSD od(1) (and NetBSD's), because that implementation spaces
+ the columns of its output more widely than GNU coreutils's
+ od(1). Thanks to Bruno Haible for the report.
+
2026-01-26 G. Branden Robinson <[email protected]>
* arch/mingw/grap2graph.cmd: Revise version info.
diff --git a/src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh
b/src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh
index 2cd3d0c07..1686e7f7e 100755
--- a/src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh
+++ b/src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh
@@ -52,11 +52,17 @@ echo "$output"
output=$(echo "$output" | sed -n '11p' | od -t x1)
echo "$output"
+# Expected output:
+# 0000000 e2 94 9c e2 94 80 e2 94 80 e2 94 80 e2 94 80 e2
+# 0000020 94 80 e2 94 80 e2 94 80 e2 94 80 e2 94 80 e2 94
+# 0000040 80 e2 94 80 e2 94 a4 0a
+# 0000050
+
echo "checking that left edge of table after heading looks like |-" >&2
echo "$output" | grep -q '0000000 *e2 *94 *9c' || wail
echo "checking that right edge of table after heading looks like -|" >&2
-echo "$output" | grep -q '0000040 .* e2 *94 *a4 *0.$' || wail
+echo "$output" | grep -q '0000040 .* *e2 *94 *a4 *0.$' || wail
test -z "$fail"
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit