gbranden pushed a commit to branch master
in repository groff.

commit 69fcd1b99e601f72204c7905e5e3d524ae9686d0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jan 7 05:33:36 2026 -0600

    [mm]: Regression-test Savannah #67830.
    
    Regression-test (the defect reported in) Savannah #67830.  The package's
    `Captc` string was not getting translated.
    
    * contrib/mm/tests/Captc-translates.sh: Do it.
    
    * contrib/mm/mm.am (mm_TESTS): Run test.
    
    Test fails at this commit.
---
 contrib/mm/ChangeLog                 |  8 ++++++
 contrib/mm/mm.am                     |  1 +
 contrib/mm/tests/Captc-translates.sh | 47 ++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index f80cc5778..13252ea09 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,11 @@
+2026-01-07  G. Branden Robinson <[email protected]>
+
+       Regression-test (the defect reported in) Savannah #67830.  The
+       package's `Capcon` string was not getting translated.
+
+       * tests/Capcon-translates.sh: Do it.
+       * mm.am (mm_TESTS): Run test.
+
 2026-01-06  G. Branden Robinson <[email protected]>
 
        * m.tmac (SP, SA, TAB, MOVE, SM, HC, VERBOFF, PIC, EPIC, HM)
diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am
index 222cb224e..467fb45c0 100644
--- a/contrib/mm/mm.am
+++ b/contrib/mm/mm.am
@@ -67,6 +67,7 @@ EXTRA_DIST += \
   contrib/mm/mmroff.pl
 
 mm_TESTS = \
+  contrib/mm/tests/Captc-translates.sh \
   contrib/mm/tests/LB-mark-format-works.sh \
   contrib/mm/tests/LT-BL-spaces-before-date.sh \
   contrib/mm/tests/LT-SP-AU-without-AT-works.sh \
diff --git a/contrib/mm/tests/Captc-translates.sh 
b/contrib/mm/tests/Captc-translates.sh
new file mode 100755
index 000000000..ec8a30e75
--- /dev/null
+++ b/contrib/mm/tests/Captc-translates.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# Copyright 2025 G. Branden Robinson
+#
+# This file is part of groff, the GNU roff typesetting system.
+#
+# 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"
+
+fail=
+
+wail () {
+    echo ...FAILED >&2
+    fail=YES
+}
+
+# Regression-test (part of ) Savannah #67830.
+
+input='.
+.P
+This is an
+.I mm
+document.
+.APP
+This is an appendix.
+.TC
+.'
+
+output=$(echo "$input" | "$groff" -m m -m fr -T ascii -P -cbou \
+    | sed '/^$/d')
+echo "$output"
+
+echo "$output" | grep -q 'SOMMAIRE'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:

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

Reply via email to