This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients ned.deily, petrosr2
Date 2015-05-09.21:42:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431207726.47.0.905480320163.issue24152@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce the failure by arbitrarily adding a non-ascii character to one of the mailcap files searched for by the mailcap module (https://docs.python.org/3/library/mailcap.html#mailcap.getcaps), like $HOME/.mailcap, and by setting the process to an ascii-only locale (export LANG=C).  While this might be a somewhat unusual combination in practice, mailcap should be able to handle it.

By the way, this is a Python 3 problem since test_mailcap does not exist in Python 2.  2.7.6 might be the version of the system-supplied Python, but you appeared to be running with a Python you built.  Try

  ./python -V

to show the version of the Python you are using.
History
Date User Action Args
2015-05-09 21:42:06ned.deilysetrecipients: + ned.deily, petrosr2
2015-05-09 21:42:06ned.deilysetmessageid: <1431207726.47.0.905480320163.issue24152@psf.upfronthosting.co.za>
2015-05-09 21:42:06ned.deilylinkissue24152 messages
2015-05-09 21:42:06ned.deilycreate