bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60803] tr request does not warn when it can't translate an input s


From: G. Branden Robinson
Subject: [bug #60803] tr request does not warn when it can't translate an input space
Date: Wed, 6 Jul 2022 01:50:53 -0400 (EDT)

Update of bug #60803 (project groff):

                  Status:                    None => In Progress            
             Assigned to:                    None => gbranden               

    _______________________________________________________

Follow-up Comment #3:

I agree that a diagnostic would be useful for this.

I decided to make it an error, because there's no warning category well suited
for it, and unlike with warnings there is no reasonable fallback behavior for
what the user was trying to accomplish.


diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 758842972..c485b15a6 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6982,6 +6982,7 @@ static void do_translate(int translate_transparent, int
translate_input)
       translate_space_to_dummy = tok.is_dummy();
       if (tok.is_newline() || tok.is_eof())
        break;
+      error("cannot translate space character; ignoring");
       tok.next();
       continue;
     }



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60803>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]