]> diplodocus.org Git - nmh/commitdiff
The size reported by mhshow test-charset is different with and
authorDavid Levine <levinedl@acm.org>
Wed, 9 Apr 2014 21:32:56 +0000 (16:32 -0500)
committerDavid Levine <levinedl@acm.org>
Wed, 9 Apr 2014 21:32:56 +0000 (16:32 -0500)
without iconv, so determine it at runtime.

test/mhshow/test-charset

index 0f3a53c..efcab90 100755 (executable)
@@ -18,6 +18,8 @@ setup_test
 
 LC_ALL=en_US.UTF-8; export LC_ALL
 
 
 LC_ALL=en_US.UTF-8; export LC_ALL
 
+test "$ICONV_ENABLED" -eq 0  &&  text_size=10  || text_size=11
+
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
@@ -46,7 +48,7 @@ Subject: test
 
 MIME-Version: 1.0
 
 
 MIME-Version: 1.0
 
-part       text/plain                  11
+part       text/plain                  $text_size
 This is a test
 EOF
 
 This is a test
 EOF