]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-charset
Added -[no]textcharset switches to mhshow(1). These only apply if
[nmh] / test / mhshow / test-charset
index 64c9812b6d9bb90fbde317c3ea362bba8a16449b..d0d8028bdca5ee0919723749f5d86c45730df00a 100755 (executable)
@@ -16,10 +16,12 @@ fi
 
 setup_test
 
+LC_ALL=en_US.UTF-8; export LC_ALL
+
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
-echo 'mhshow-charset-windows-1252: echo "This is a test"' >> $MH_TEST_DIR/Mail/.mh_profile
+echo 'mhshow-charset-windows-1252: echo "This is a test"' >> "$MH"
 
 # Write message with bogus quoted-printable data.
 msgfile=`mhpath new`
@@ -48,7 +50,7 @@ part       text/plain                  10
 This is a test
 EOF
 
-mhshow -nopause $msgnum > $actual 2>&1
+run_prog mhshow -nopause $msgnum > $actual 2>&1
 check "$expected" "$actual"
 
 exit $failed