summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c9366c8)
not available. Thanks to Alexander Zangerl for reporting the
issue.
13 files changed:
+# Skip test if none of the offered locales are supported.
+require_locale ()
+{
+ for locale in "$@"; do
+ if locale -a | grep -i "$locale" >/dev/null; then
+ return
+ fi
+ done
+
+ test_skip "no suitable locale available"
+}
+
# Some stuff for doing silly progress indicators
if [ -t 1 ] ; then
progress_update ()
# Some stuff for doing silly progress indicators
if [ -t 1 ] ; then
progress_update ()
# Check that dist encodes headers using RFC-2047 properly
#
# Check that dist encodes headers using RFC-2047 properly
#
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
cat >"$expected" <<EOF
LC_ALL=en_US.UTF-8; export LC_ALL
cat >"$expected" <<EOF
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
draft="$MH_TEST_DIR/$$.draft"
LC_ALL=en_US.UTF-8; export LC_ALL
draft="$MH_TEST_DIR/$$.draft"
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
draft="$MH_TEST_DIR/$$.draft"
LC_ALL=en_US.UTF-8; export LC_ALL
draft="$MH_TEST_DIR/$$.draft"
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
draft="$MH_TEST_DIR/$$.draft"
LC_ALL=en_US.UTF-8; export LC_ALL
draft="$MH_TEST_DIR/$$.draft"
#
# We're going to hardcode UTF-8 for this test.
#
#
# We're going to hardcode UTF-8 for this test.
#
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
#
LC_ALL=en_US.UTF-8; export LC_ALL
#
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
#### Rely on sendmail/pipe below to override default mts.
LC_ALL=en_US.UTF-8; export LC_ALL
#### Rely on sendmail/pipe below to override default mts.
. "${srcdir}/test/post/test-post-common.sh"
. "${srcdir}/test/post/test-post-common.sh"
+#### Make sure that html-to-text conversion is what we expect.
+require_locale en_US.utf8
+LC_ALL=en_US.UTF-8; export LC_ALL
+
expected="$MH_TEST_DIR/test-mhfixmsg$$.expected"
expected_err="$MH_TEST_DIR/test-mhfixmsg$$.expected_err"
actual="$MH_TEST_DIR/test-mhfixmsg$$.actual"
actual_err="$MH_TEST_DIR/test-mhfixmsg$$.actual_err"
expected="$MH_TEST_DIR/test-mhfixmsg$$.expected"
expected_err="$MH_TEST_DIR/test-mhfixmsg$$.expected_err"
actual="$MH_TEST_DIR/test-mhfixmsg$$.actual"
actual_err="$MH_TEST_DIR/test-mhfixmsg$$.actual_err"
-#### Make sure that html-to-text conversion is what we expect.
-LC_ALL=en_US.UTF-8; export LC_ALL
-
if grep mhfixmsg-format-text/html "${MH_TEST_DIR}/Mail/mhn.defaults" \
>/dev/null; then
can_reformat_texthtml=1
if grep mhfixmsg-format-text/html "${MH_TEST_DIR}/Mail/mhn.defaults" \
>/dev/null; then
can_reformat_texthtml=1
+require_locale en_US.utf8
+LC_ALL=en_US.UTF-8; export LC_ALL
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
-LC_ALL=en_US.UTF-8; export LC_ALL
#
# Write a message with some extended parameters
#
# Write a message with some extended parameters
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
test "$ICONV_ENABLED" -eq 0 && text_size=10 || text_size=11
LC_ALL=en_US.UTF-8; export LC_ALL
test "$ICONV_ENABLED" -eq 0 && text_size=10 || text_size=11
test_skip 'test-textcharset requires that nmh have been built with iconv'
fi
test_skip 'test-textcharset requires that nmh have been built with iconv'
fi
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
expected="$MH_TEST_DIR"/$$.expected
LC_ALL=en_US.UTF-8; export LC_ALL
expected="$MH_TEST_DIR"/$$.expected
+require_locale en_US.utf8
# Don't use run_prog here because it loses the environment setting.
LC_ALL=en_US.UTF-8 pick -subject foobar 13 >"$actual" 2>&1
set -e
# Don't use run_prog here because it loses the environment setting.
LC_ALL=en_US.UTF-8 pick -subject foobar 13 >"$actual" 2>&1
set -e
test_skip "configure did not detect multibyte support"
fi
test_skip "configure did not detect multibyte support"
fi
+require_locale en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
#
LC_ALL=en_US.UTF-8; export LC_ALL
#