Message146066
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. |
|
Date |
User |
Action |
Args |
2011-10-21 06:42:24 | guettli | set | recipients:
+ guettli, vinay.sajip, vstinner, ezio.melotti |
2011-10-21 06:42:24 | guettli | set | messageid: <1319179344.11.0.251756700497.issue13232@psf.upfronthosting.co.za> |
2011-10-21 06:42:23 | guettli | link | issue13232 messages |
2011-10-21 06:42:23 | guettli | create | |
|