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 guettli
Recipients ezio.melotti, guettli, vinay.sajip, vstinner
Date 2011-10-21.06:42:23
SpamBayes Score 2.0463755e-08
Marked as misclassified No
Message-id <1319179344.11.0.251756700497.issue13232@psf.upfronthosting.co.za>
In-reply-to
Content
I attached a testcase (unicodedecodeerror-in-logging.py). If the filesystemencoding is UTF-8 and the source code is encoded in latin1, then the logging fails. It happens because there is a German umlaut in the comment behind 1/0.

I added 'replace' to the decode() in __init__.py and the it works. The German umlaut gets displayed as inverted question mark. But this is better than no logging message.
History
Date User Action Args
2011-10-21 06:42:24guettlisetrecipients: + guettli, vinay.sajip, vstinner, ezio.melotti
2011-10-21 06:42:24guettlisetmessageid: <1319179344.11.0.251756700497.issue13232@psf.upfronthosting.co.za>
2011-10-21 06:42:23guettlilinkissue13232 messages
2011-10-21 06:42:23guettlicreate