[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: Skip HTML output test if UTF-8 not available.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/01: Skip HTML output test if UTF-8 not available. |
Date: |
Mon, 13 Apr 2020 09:13:23 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit be938bab8be71b54f107a56a1025d5c916b107dc
Author: G. Branden Robinson <address@hidden>
AuthorDate: Mon Apr 13 23:09:16 2020 +1000
Skip HTML output test if UTF-8 not available.
* src/roff/groff/tests/smoke-test_html_device.sh: Skip the test if the
environment doesn't support UTF-8 (according to 'locale -k charmap').
---
ChangeLog | 5 +++--
src/roff/groff/tests/smoke-test_html_device.sh | 3 +++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 32bf421..abed908 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -57,8 +57,9 @@
* src/roff/groff/tests/smoke-test_html_device.sh: Set
LC_CTYPE=C.UTF-8 so that byte sequences in the pipelines are
- handled correctly. Thanks to Bjarni Ingi Gislason for the
- trouble report.
+ handled correctly. Skip the test if the environment doesn't
+ support UTF-8. Thanks to Bjarni Ingi Gislason for the trouble
+ report.
Fixes <https://savannah.gnu.org/bugs/?58164>.
diff --git a/src/roff/groff/tests/smoke-test_html_device.sh
b/src/roff/groff/tests/smoke-test_html_device.sh
index 265a842..06f1267 100755
--- a/src/roff/groff/tests/smoke-test_html_device.sh
+++ b/src/roff/groff/tests/smoke-test_html_device.sh
@@ -19,7 +19,10 @@
#
groff="${abs_top_builddir:-.}/test-groff"
+
+# We can't run these tests if the environment doesn't support UTF-8.
LC_CTYPE=C.UTF-8
+test "$(locale -k charmap)" = 'charmap="UTF-8"' || exit 77 # skip
set -e
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: Skip HTML output test if UTF-8 not available.,
G. Branden Robinson <=