gbranden pushed a commit to branch master
in repository groff.
commit c642f5fc7e1a274e89598aa54aa5199e4b7796d0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Sep 18 00:22:55 2025 -0500
[troff]: Regression-test Savannah #66653.
* src/roff/groff/tests/asciify-composite-nodes-correctly.sh: Do it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Also drop ersatz '(C)' copyright symbol from "groff.am". Software
developers have long labored under the no-longer-correct misconception
that omitting a copyright symbol from one's notice was a fatal defect
that effectively placed the work in the public domain. That stopped
being true as of 1 March 1989.[1] Further, prior to guidance issued by
the U.S. Copyright Office in the decades since, the use of "(C)" as a
substitute for a copyright sign _may not have sufficed_ to prevent the
copyright notice from being regarded as defective. The Copyright
Office, then and now, prefers the abbreviation "copr." when © is
typographically unavailable.[1] Nowadays, its advice is that "c" (note
lowercase) is an "acceptable variant", that _may_ retain the efficacy of
the copyright notice. The word "copyright", spelled out in full, also
suffices per that resource, and is already present in this notice.
[1] https://www.copyright.gov/circs/circ03.pdf
---
ChangeLog | 8 +++++
src/roff/groff/groff.am | 3 +-
.../tests/asciify-composite-nodes-correctly.sh | 36 ++++++++++++++++++++++
3 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 2815b0a4a..5ae9b810f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-09-18 G. Branden Robinson <[email protected]>
+
+ [troff]: Regression-test Savannah #66653.
+
+ * src/roff/groff/tests/asciify-composite-nodes-correctly.sh: Do
+ it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2025-09-17 G. Branden Robinson <[email protected]>
[troff]: Refactor `node` class hierarchy. Make `node` an
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index ef01107b3..f99e85558 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -1,4 +1,4 @@
-# Copyright (C) 1993-2020 Free Software Foundation, Inc.
+# Copyright 1993-2020 Free Software Foundation, Inc.
#
# Original Makefile.sub rewritten by
# Bernd Warken <[email protected]>
@@ -39,6 +39,7 @@ groff_TESTS = \
src/roff/groff/tests/ab-request-works.sh \
src/roff/groff/tests/adjustment-works.sh \
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/backslash-X-works.sh \
src/roff/groff/tests/backslash-Y-works.sh \
diff --git a/src/roff/groff/tests/asciify-composite-nodes-correctly.sh
b/src/roff/groff/tests/asciify-composite-nodes-correctly.sh
new file mode 100755
index 000000000..1e0ef06da
--- /dev/null
+++ b/src/roff/groff/tests/asciify-composite-nodes-correctly.sh
@@ -0,0 +1,36 @@
+#!/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"
+
+input='.
+.ec @
+.box DIV
+@[u0106] @[u015E]
+.br
+.box
+.asciify DIV
+.DIV
+.'
+
+output=$(printf "%s\n" "$input" | "$groff" -T ps -a)
+echo "$output"
+echo "$output" | grep -qx 'C<aa> S<ac>'
+
+# vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit