gbranden pushed a commit to branch master
in repository groff.

commit 868dabcdb3c8944a6a6fb2cfcc7b82d1e90e7073
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jul 11 20:11:54 2026 -0500

    [troff]: Fix Savannah #68510.
    
    * src/roff/troff/input.cpp (set_character_flags_request): Change
      condition of `while` loop from `tok.is_any_character()` to new
      side-effectful `read_any_character()` function.
    
    Fixes <https://savannah.gnu.org/bugs/?68510>.  Problem introduced by me
    in commit 3f0c81a0a7, 24 May.  Thanks to Dave Kemper for the report.
---
 ChangeLog                | 10 ++++++++++
 src/roff/troff/input.cpp |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index df334a3ef..f1c7a53bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-07-11  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (set_character_flags_request): Change
+       condition of `while` loop from `tok.is_any_character()` to new
+       side-effectful `read_any_character()` function.
+
+       Fixes <https://savannah.gnu.org/bugs/?68510>.  Problem
+       introduced by me in commit 3f0c81a0a7, 24 May.  Thanks to Dave
+       Kemper for the report.
+
 2026-07-11  G. Branden Robinson <[email protected]>
 
        [groff]: Add unit test for `cflags` request.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index abef1e920..5c6dc868b 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8893,7 +8893,7 @@ static void set_character_flags_request() // .cflags
     skip_line();
     return;
   }
-  while (tok.is_any_character()) {
+  while (read_any_character()) {
     charinfo *ci = tok.get_charinfo(true /* is_mandatory */);
     if (0 /* nullptr */ == ci)
       assert(0 == "attempted to use token without charinfo in"

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

Reply via email to