]> diplodocus.org Git - nmh/blobdiff - test/mhbuild/test-cte
The units of the zone format escape are minutes, not hours.
[nmh] / test / mhbuild / test-cte
index 1ccfe199441692114946cbfea97653dbdbebd642..4d7c6d929350363b16a96bce06a153e53ae3f271 100755 (executable)
@@ -16,9 +16,11 @@ setup_test
 
 set -e
 
 
 set -e
 
+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"
+backup="${MH_TEST_DIR}/`mhparam sbackup`$$.draft.orig"
 expected="$MH_TEST_DIR/$$.expected"
 
 #
 expected="$MH_TEST_DIR/$$.expected"
 
 #
@@ -356,7 +358,7 @@ To: Mr Test <mrtest@example.com>
 cc:
 Fcc: +outbox
 ------
 cc:
 Fcc: +outbox
 ------
-This is the test of a lønger line than the ususal limit.  Assuming we set the maxunencded parameter properly, this should end up as 8bit?
+This is the test of a lønger line than the usual limit.  Assuming we set the maxunencded parameter properly, this should end up as 8bit?
 EOF
 
 run_prog mhbuild -maxunencoded 200 "$draft"
 EOF
 
 run_prog mhbuild -maxunencoded 200 "$draft"
@@ -369,9 +371,11 @@ MIME-Version: 1.0
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: 8bit
 
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: 8bit
 
-This is the test of a lønger line than the ususal limit.  Assuming we set the maxunencded parameter properly, this should end up as 8bit?
+This is the test of a lønger line than the usual limit.  Assuming we set the maxunencded parameter properly, this should end up as 8bit?
 EOF
 
 check "$draft" "$expected"
 
 EOF
 
 check "$draft" "$expected"
 
+[ ${failed:=0} -eq 0 ]  &&  rm -f ${backup}
+
 exit ${failed:-0}
 exit ${failed:-0}