X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/df44d1273c426806db05f6b29d8e7373ecfee3c6..9a252767b2fc48d8f6d2aaabdcb77a5ce1dbad00:/test/mhbuild/test-ext-params?ds=sidebyside diff --git a/test/mhbuild/test-ext-params b/test/mhbuild/test-ext-params index adde9d95..5be4514b 100755 --- a/test/mhbuild/test-ext-params +++ b/test/mhbuild/test-ext-params @@ -14,7 +14,7 @@ fi setup_test -LC_ALL=en_US.UTF-8; export LC_ALL +require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8 draft="$MH_TEST_DIR/$$.draft" backup="${MH_TEST_DIR}/`mhparam sbackup`$$.draft.orig" @@ -157,7 +157,6 @@ This is a test message EOF run_prog mhbuild "$draft" -rm -f "$MH_TEST_DIR/tïny.jpg" cat > "$expected" < @@ -183,6 +182,31 @@ EOF check "$draft" "$expected" +# +# Test to make sure things fail if we try to put 8-bit characters when the +# locale is US-ASCII +# + +cat > "$draft" < +cc: +Fcc: +outbox +------ +This is a test message +#image/jpeg {attachment} $MH_TEST_DIR/tïny.jpg +EOF + +old_locale="$LC_ALL" +LC_ALL=C; export LC_ALL + +set +e +run_test 'eval mhbuild "$draft" 2>&1' 'mhbuild: 8-bit characters in parameter "filename", but local character set is US-ASCII' +set -e + +LC_ALL="$old_locale"; export LC_ALL + +rm -f "$MH_TEST_DIR/tïny.jpg" + # # Test out message/external-body decoding #