gbranden pushed a commit to branch master
in repository groff.

commit c1dada46eafa1609efe6ab4392a4982a007efe87
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Aug 13 04:55:20 2024 -0500

    src/roff/troff/input.cpp: Use `libgroff` facility.
    
    * src/roff/troff/input.cpp (do_string_case_transform): Use libgroff's
      `cmupper()` and `cmlower()` functions instead of going directly to the
      standard C library's `to{upp,low}er()`.
---
 ChangeLog                | 6 ++++++
 src/roff/troff/input.cpp | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3480ebe16..bb972c30b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-08-13  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (do_string_case_transform): Use
+       libgroff's `cmupper()` and `cmlower()` functions instead of
+       going directly to the standard C library's `to{upp,low}er()`.
+
 2024-08-13  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/troff.h: Slightly refactor; boolify and rename
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index c3611d8f2..6044f8c85 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -4934,9 +4934,9 @@ void do_string_case_transform(case_xform_mode mode)
       break;
     else
       if (mode == STRING_DOWNCASE)
-       nc = tolower(c);
+       nc = cmlower(c);
       else
-       nc = toupper(c);
+       nc = cmupper(c);
     mac->append(nc);
   }
   request_dictionary.define(s, mac);

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

Reply via email to