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
+unset LANG LC_ALL LC_CTYPE
#### Use a test dir for tmp files when MHTMPDIR applies.
MHTMPDIR=$MH_TEST_DIR/Mail
fi
}
+# Skip test if none of the offered locales are supported.
+require_locale ()
+{
+ for locale in "$@"; do
+ if locale -a | grep -i "$locale" >/dev/null; then
+ return
+ fi
+ done
+
+ test_skip "no suitable locale available"
+}
+
# Some stuff for doing silly progress indicators
if [ -t 1 ] ; then
progress_update ()