that only Linux uses the locale name of en_US.utf8, so added check
for the more common en_US.utf-8 to the tests that use it.
12 files changed:
# Check that dist encodes headers using RFC-2047 properly
#
# Check that dist encodes headers using RFC-2047 properly
#
-require_locale en_US.utf8
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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"
#### Make sure that html-to-text conversion is what we expect.
. "${srcdir}/test/post/test-post-common.sh"
#### Make sure that html-to-text conversion is what we expect.
-require_locale en_US.utf8
+require_locale en_US.utf-8 en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
expected="$MH_TEST_DIR/test-mhfixmsg$$.expected"
LC_ALL=en_US.UTF-8; export LC_ALL
expected="$MH_TEST_DIR/test-mhfixmsg$$.expected"
-require_locale en_US.utf8
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 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
+require_locale en_US.utf-8 en_US.utf8
LC_ALL=en_US.UTF-8; export LC_ALL
#
LC_ALL=en_US.UTF-8; export LC_ALL
#