LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 unset LC_CTYPE unset LC_NUMERIC unset LC_TIME unset LC_COLLATE unset LC_MONETARY unset LC_MESSAGES unset LC_PAPER unset LC_NAME unset LC_ADDRESS unset LC_TELEPHONE unset LC_MEASUREMENT unset LC_IDENTIFICATION unset LC_ALL unset CHARSET unset MM_CHARSET export LANG export LC_ALL echo "foo" >confmdtest ./makemime -c application/octet-stream -C utf-8 -N footest confmdtest ./makemime -c auto -C utf-8 -N text7bit confmdtest echo "foox" | tr 'x' '\000' >confmdtest ./makemime -c auto -C utf-8 -N binarybase64 confmdtest echo "Tést" >confmdtest ./makemime -c auto -C utf-8 -N text8bit confmdtest echo "Test Test Test Test Tést" >confmdtest ./makemime -c auto -C utf-8 -N text8bit confmdtest x="1234567890" x="$x$x$x$x$x$x$x$x$x$x" x="$x$x$x$x$x$x$x$x$x$x" echo $x >confmdtest ./makemime -c auto -C utf-8 -N textqp confmdtest x="ééééé" x="$x$x$x$x$x$x$x$x$x$x" x="$x$x$x$x$x$x$x$x$x$x" echo $x >confmdtest ./makemime -c auto -C utf-8 -N textbase64 confmdtest rm -f confmdtest ./reformime -o 'дададададададададада' ./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?=' ./reformime -o 'дададададададададада дададададададададада' ./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsCDQtNCw0LQ=?= =?UTF-8?B?0LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?=' ./reformime -o 'дададададададададада foo дададададададададада' ./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?= foo =?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?=' ./reformime -o 'дададададададададада foo bar дададададададададада' ./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?= foo bar =?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?='