]> diplodocus.org Git - nmh/commitdiff
Unset LANG, LC_ALL, and LC_TYPE in common.sh so that the tests
authorDavid Levine <levinedl@acm.org>
Wed, 29 Jan 2014 03:36:05 +0000 (21:36 -0600)
committerDavid Levine <levinedl@acm.org>
Wed, 29 Jan 2014 03:36:05 +0000 (21:36 -0600)
don't accidentally rely on any of the user's settings.

test/common.sh.in

index be8b25dfb046491df8362a454b68ed337954c4d3..85ec2089c709d25324c06c6d3054bfd04217f65d 100644 (file)
@@ -24,6 +24,9 @@ export MH_INST_DIR
 
 unset MHBUILD MHCONTEXT MHMTSUSERCONF MHN MHSHOW MHSTORE
 unset MHLDEBUG MHPDEBUG MHWDEBUG PAGER
 
 unset MHBUILD MHCONTEXT MHMTSUSERCONF MHN MHSHOW MHSTORE
 unset MHLDEBUG MHPDEBUG MHWDEBUG PAGER
+#### Set LC_ALL in individual tests as needed.  Unset these so
+#### that we don't depend on user's settings in other tests.
+unset LANG LC_ALL LC_TYPE
 
 #### Use a test dir for tmp files when MHTMPDIR applies.
 MHTMPDIR=$MH_TEST_DIR/Mail
 
 #### Use a test dir for tmp files when MHTMPDIR applies.
 MHTMPDIR=$MH_TEST_DIR/Mail