gbranden pushed a commit to branch master
in repository groff.

commit fbe6fe4f8b13f8937667c127885b8f806b22ff29
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 11 06:22:15 2025 -0500

    [groff]: Use printf(1) more portably in test.
    
    * src/roff/groff/tests/html-device-smoke-test.sh: Use printf(1) more
      portably (`\(` is not well-defined in a format string).  Thanks to
      Lennart Jablonka for the report and a proposed patch.
---
 ChangeLog                                      | 6 ++++++
 src/roff/groff/tests/html-device-smoke-test.sh | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a72009abf..a1a5f4216 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-11  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/html-device-smoke-test.sh: Use printf(1)
+       more portably (`\(` is not well-defined in a format string).
+       Thanks to Lennart Jablonka for the report and a proposed patch.
+
 2025-03-30  Lennart Jablonka <[email protected]>
 
        Don't use non-POSIX syntax `\+` in BREs.
diff --git a/src/roff/groff/tests/html-device-smoke-test.sh 
b/src/roff/groff/tests/html-device-smoke-test.sh
index 8d2aad7fd..7cc3cf8ec 100755
--- a/src/roff/groff/tests/html-device-smoke-test.sh
+++ b/src/roff/groff/tests/html-device-smoke-test.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2020-2024 Free Software Foundation, Inc.
+# Copyright (C) 2020-2025 Free Software Foundation, Inc.
 #
 # This file is part of groff.
 #
@@ -103,7 +103,7 @@ printf '\303\241' | "$groff" -k -Thtml | grep -qx 
'<p>&aacute;</p>' \
 # We test compatibility-mode HTML output somewhat differently since
 # preconv only emits groffish \[uXXXX] escapes for non-ASCII codepoints.
 echo "checking -C -k -Thtml" >&2
-printf "\('a" | "$groff" -C -k -Thtml | grep -qx '<p>&aacute;</p>' \
+printf '\\('"'"a | "$groff" -C -k -Thtml | grep -qx '<p>&aacute;</p>' \
     || wail
 
 test -z "$fail"

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

Reply via email to