]> diplodocus.org Git - nmh/commitdiff
Fix to commit 0d3875d020fb17d34918f5e81ee7f87fbc5d1565: it seems
authorDavid Levine <levinedl@acm.org>
Mon, 16 Jun 2014 03:43:16 +0000 (22:43 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 16 Jun 2014 03:43:16 +0000 (22:43 -0500)
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:
test/dist/test-dist
test/mhbuild/test-attach
test/mhbuild/test-cte
test/mhbuild/test-ext-params
test/mhbuild/test-header-encode
test/mhbuild/test-utf8-body
test/mhfixmsg/test-mhfixmsg
test/mhlist/test-ext-params
test/mhshow/test-charset
test/mhshow/test-textcharset
test/pick/test-pick
test/scan/test-scan-multibyte

index 6c3c80b..155f773 100755 (executable)
@@ -388,7 +388,7 @@ run_test 'scan +outbox -width 6 2' '   2 '
 # 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
index 8e2edf8..11e0551 100755 (executable)
@@ -14,7 +14,7 @@ fi
 
 setup_test
 
-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"
index b63f199..4d7c6d9 100755 (executable)
@@ -16,7 +16,7 @@ setup_test
 
 set -e
 
-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"
index 4e28ab4..039fe9a 100755 (executable)
@@ -14,7 +14,7 @@ fi
 
 setup_test
 
-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"
index 7cc25be..e96783f 100755 (executable)
@@ -21,7 +21,7 @@ backupname="${MH_TEST_DIR}/`mhparam sbackup`$$"
 #
 # 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
 
 #
index 377d623..1a08a90 100755 (executable)
@@ -19,7 +19,7 @@ testname="${MH_TEST_DIR}/$$"
 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.
index dea2ddc..cac5fb8 100755 (executable)
@@ -15,7 +15,7 @@ fi
 . "${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"
index 2e2373e..73dcf88 100755 (executable)
@@ -16,7 +16,7 @@ fi
 
 setup_test
 
-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
index 39f52a6..e0a0b6e 100755 (executable)
@@ -16,7 +16,7 @@ fi
 
 setup_test
 
-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
index f21ea56..d4d7ef0 100755 (executable)
@@ -20,7 +20,7 @@ if test "$ICONV_ENABLED" -eq 0; then
   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
index 7c3896e..4eff47c 100755 (executable)
@@ -262,7 +262,7 @@ echo 13 >"$expected"
 
 set +e
 
-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
index 9dae456..f646614 100755 (executable)
@@ -26,7 +26,7 @@ if test "${MULTIBYTE_ENABLED}" -ne 1; then
     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
 
 #