gbranden pushed a commit to branch master
in repository groff.
commit 8995bdf8af5509d7dda7bf9b7ff142585d26e301
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 3 20:22:20 2026 -0500
[groff]: Tweak wording of error diagnostics.
* src/roff/groff/groff.cpp (xstrdup):
* src/roff/groff/pipeline.c (sbasename): Tweak wording of error
diagnostics; favor "cannot" over "unable to".
Continues the long process of fixing Savannah #66519.
---
ChangeLog | 8 ++++++++
src/roff/groff/groff.cpp | 2 +-
src/roff/groff/pipeline.c | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 39e5c6d1d..daf048a32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-04-03 G. Branden Robinson <[email protected]>
+
+ * src/roff/groff/groff.cpp (xstrdup):
+ * src/roff/groff/pipeline.c (sbasename): Tweak wording of error
+ diagnostics; favor "cannot" over "unable to".
+
+ Continues the long process of fixing Savannah #66519.
+
2026-04-03 G. Branden Robinson <[email protected]>
[man,mdoc]: Apply new `rhw` request, clearing the user-defined
diff --git a/src/roff/groff/groff.cpp b/src/roff/groff/groff.cpp
index d9a02974a..6133107b8 100644
--- a/src/roff/groff/groff.cpp
+++ b/src/roff/groff/groff.cpp
@@ -125,7 +125,7 @@ static char *xstrdup(const char *s) {
return const_cast<char *>(s);
char *str = strdup(s);
if (0 /* nullptr */ == str)
- fatal("unable to copy string: %1", strerror(errno));
+ fatal("cannot copy string: %1", strerror(errno));
return str;
}
diff --git a/src/roff/groff/pipeline.c b/src/roff/groff/pipeline.c
index 08dd04705..3ebf5bb63 100644
--- a/src/roff/groff/pipeline.c
+++ b/src/roff/groff/pipeline.c
@@ -122,7 +122,7 @@ char *sbasename(const char *path)
size_t nbytes = (size_t)(p2 - p1);
base = malloc(nbytes);
if (NULL == base) {
- sprintf(err_str, "unable to allocate %zd bytes"
+ sprintf(err_str, "cannot allocate %zd bytes"
" for base name of file", nbytes);
sys_fatal(err_str);
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit