gbranden pushed a commit to branch master
in repository groff.

commit a7c83a53e753ef3250908384ae3fa369709aedf1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Dec 5 06:51:38 2025 -0600

    [troff]: Fix blunder from 19 November.
    
    * src/roff/troff/input.cpp (token::description): Don't create a special
      character in the course of trying to describe it.
    
    Fixes blunder I introduced in commit fcf3505a09, 10 November.
---
 ChangeLog                | 7 +++++++
 src/roff/troff/input.cpp | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d6bb8dd71..ebccfeca3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-12-05  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (token::description): Don't create a
+       special character in the course of trying to describe it.
+
+       Fixes blunder I introduced in commit fcf3505a09, 10 November.
+
 2025-12-05  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (define_class_request): Add assertion
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 08fb464f4..d5d912bb5 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -3015,7 +3015,8 @@ const char *token::description()
       static const char special_character[] = "special character";
       static const char character_class[] = "character class";
       const char *ctype = special_character;
-      charinfo *ci = get_charinfo();
+      charinfo *ci = get_charinfo(false /* required */,
+                                 true /* suppress creation */);
       if (0 /* nullptr */ == ci) {
        assert(0 == "attempted to process token without charinfo");
        return "impossible character";

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

Reply via email to