Message146066
| 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: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 |
|