gbranden pushed a commit to branch master
in repository groff.
commit 380e39be3c5513dde4eb652e8a25e37e55b17962
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 25 01:57:25 2026 -0500
[tfmtodit]: Revise diagnostic messages.
...to more closely match terminology from our documentation and model
language from elsewhere in the source tree.
* src/utils/tfmtodit/tfmtodit.cpp (tfm::load, gf::load, read_map, main):
Do it.
Continues the long process of fixing Savannah #66519.
---
ChangeLog | 9 +++++++++
src/utils/tfmtodit/tfmtodit.cpp | 8 ++++----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 62ec5c7d2..ab950b580 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-05-25 G. Branden Robinson <[email protected]>
+
+ * src/utils/tfmtodit/tfmtodit.cpp (tfm::load, gf::load)
+ (read_map, main): Revise diagnostic messages to more closely
+ match terminology from our documentation and model language from
+ elsewhere in the source tree.
+
+ Continues the long process of fixing Savannah #66519.
+
2026-05-25 G. Branden Robinson <[email protected]>
* src/utils/tfmtodit/tfmtodit.cpp (tfm:load): Fix code style
diff --git a/src/utils/tfmtodit/tfmtodit.cpp b/src/utils/tfmtodit/tfmtodit.cpp
index a2b9c261b..2594b3165 100644
--- a/src/utils/tfmtodit/tfmtodit.cpp
+++ b/src/utils/tfmtodit/tfmtodit.cpp
@@ -287,7 +287,7 @@ int tfm::load(const char *file)
errno = 0;
FILE *fp = fopen(file, FOPEN_RB);
if (0 /* nullptr */ == fp) {
- error("can't open '%1': %2", file, strerror(errno));
+ error("cannot open '%1': %2", file, strerror(errno));
return 0;
}
int c1 = getc(fp);
@@ -428,7 +428,7 @@ int gf::load(const char *file)
errno = 0;
FILE *fp = fopen(file, FOPEN_RB);
if (0 /* nullptr */ == fp) {
- error("can't open '%1': %2", file, strerror(errno));
+ error("cannot open '%1': %2", file, strerror(errno));
return 0;
}
if (getc(fp) != pre || getc(fp) != gf_id_byte) {
@@ -615,7 +615,7 @@ int read_map(const char *file, char_list **table)
errno = 0;
FILE *fp = fopen(file, "r");
if (0 /* nullptr */ == fp) {
- error("can't open '%1': %2", file, strerror(errno));
+ error("cannot open '%1': %2", file, strerror(errno));
return 0;
}
for (int i = 0; i < 256; i++)
@@ -778,7 +778,7 @@ int main(int argc, char **argv)
return 1;
errno = 0;
if (!freopen(font_file, "w", stdout)) {
- error("can't open '%1' for writing: %2", font_file,
+ error("cannot open '%1' for writing: %2", font_file,
strerror(errno));
return 1;
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit