gbranden pushed a commit to branch master
in repository groff.
commit 6751fc4c4bafab501eb5777bfcda737b8fde8692
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 30 05:39:39 2025 -0600
[troff]: Fix Savannah #67747 (warnscale warning).
* src/roff/troff/input.cpp (warnscale_request): In warning diagnostic in
category "syntax", accurately describe the argument to the request
even if it is something bizarre, instead of presenting the user with
an empty pair of quotation marks.
Fixes <https://savannah.gnu.org/bugs/?67747>. Problem dates back to
intoduction of `warnscale` request in commit 9993a881c1, 5 May 2002.
---
ChangeLog | 11 +++++++++++
src/roff/troff/input.cpp | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index c89dc8ea1..5c6adff8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2025-11-30 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (warnscale_request): In warning
+ diagnostic in category "syntax", accurately describe the
+ argument to the request even if it is something bizarre, instead
+ of presenting the user with an empty pair of quotation marks.
+
+ Fixes <https://savannah.gnu.org/bugs/?67747>. Problem dates
+ back to intoduction of `warnscale` request in commit 9993a881c1,
+ 5 May 2002.
+
2025-11-30 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (warnscale_request): Actually reset
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index f7e415013..94dd55d8e 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8335,7 +8335,8 @@ void warnscale_request()
warn_scale = (double) units_per_inch / 6.0;
else {
warning(WARN_SCALE,
- "scaling unit '%1' invalid; using 'i' instead", c);
+ "%1 is not a valid scaling unit; using 'i'",
+ tok.description());
c = 'i';
warn_scale = (double) units_per_inch;
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit