gbranden pushed a commit to branch master
in repository groff.
commit 1aa48d358973c8f67426e40dfe1fb23346278f1c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Nov 7 05:54:57 2025 -0600
[troff]: Regression-test Savannah #67680.
* src/roff/groff/tests/asciify-special-characters-correctly.sh: Do it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 +++++
src/roff/groff/groff.am | 1 +
.../tests/asciify-special-characters-correctly.sh | 41 ++++++++++++++++++++++
3 files changed, 50 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 985da53e2..2ce43adc4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-11-07 G. Branden Robinson <[email protected]>
+
+ [troff]: Regression-test Savannah #67680.
+
+ * src/roff/groff/tests/asciify-special-characters-correctly.sh:
+ Do it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2025-11-07 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (charinfo::dump): Report glyph
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 59e38d5e2..52aed8770 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -41,6 +41,7 @@ groff_TESTS = \
src/roff/groff/tests/arithmetic-works.sh \
src/roff/groff/tests/asciify-composite-nodes-correctly.sh \
src/roff/groff/tests/asciify-request-works.sh \
+ src/roff/groff/tests/asciify-special-characters-correctly.sh \
src/roff/groff/tests/backslash-X-is-transparent-to-hyphenation.sh \
src/roff/groff/tests/backslash-X-works.sh \
src/roff/groff/tests/backslash-Y-works.sh \
diff --git a/src/roff/groff/tests/asciify-special-characters-correctly.sh
b/src/roff/groff/tests/asciify-special-characters-correctly.sh
new file mode 100755
index 000000000..4bb5755c7
--- /dev/null
+++ b/src/roff/groff/tests/asciify-special-characters-correctly.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# Copyright 2025 G. Branden Robinson
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+# Regression-test Savannah #67680.
+
+input='.
+.ds label Proving 0 \[!=] 1 \[u2260] 2
+.box DIV
+\*[label]
+.br
+.box
+.DIV
+.asciify DIV
+.DIV
+.pdfbookmark 1 \*[DIV]
+.'
+
+output=$(printf '%s\n' "$input" | "$groff" -ww -Tpdf -Z)
+echo "$output"
+echo "$output" \
+ | grep -q 'x X ps:exec .*(Proving 0 \\\[u2260] 1 \\\[u2260] 2)'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit