gbranden pushed a commit to branch master
in repository groff.

commit 3e26c6e1470136db5f4f15d79d7db283df4447a0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Dec 21 10:37:39 2025 -0600

    [groff]: Regression-test Savannah #67842.
    
    * src/roff/groff/tests/check-delimiter-validity.sh: Add regression test
      for Savannah #67842.
    
    Test fails at this commit.
---
 ChangeLog                                        | 5 +++++
 src/roff/groff/tests/check-delimiter-validity.sh | 9 +++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index db2dca783..7e75df0c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-12-21  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/check-delimiter-validity.sh: Add
+       regression test for Savannah #67842.
+
 2025-12-21  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (token::description): Drop
diff --git a/src/roff/groff/tests/check-delimiter-validity.sh 
b/src/roff/groff/tests/check-delimiter-validity.sh
index 8f4d42065..997f12df8 100755
--- a/src/roff/groff/tests/check-delimiter-validity.sh
+++ b/src/roff/groff/tests/check-delimiter-validity.sh
@@ -137,8 +137,13 @@ echo "checking invalidity of \h as escape sequence 
delimiter" \
 output=$(printf 'foo\\C\\h"1m"em\\h"1m"bar\n' | "$groff" -T ascii -a)
 echo "$output" | grep -Fqx "foo--bar" && wail
 
-# TODO: Check invalidity of \C as escape sequence delimiter when not in
-# compatibility mode.  See comment #27 of Savannah #67372.
+# Check invalidity of \C as escape sequence delimiter when not in
+# compatibility mode.  See Savannah #67842.
+echo "checking invalidity of \C as escape sequence delimiter" \
+    "to delimited escape sequence" >&2
+output=$(printf 'foo\\h\\C"em"2m\\C"em"bar\n.pl \\(nlu' \
+    | "$groff" -T ascii)
+echo "$output" | grep -Fqx "foo  bar" && wail # 2 spaces
 
 # Now test the context-dependent sets of delimiters of AT&T troff.
 

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to