[issue13232] Logging: Unicode Error

2011-10-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4bb1dc4e2cec by Vinay Sajip in branch '2.7': Closes #13232: Handle multiple encodings in exception logging. http://hg.python.org/cpython/rev/4bb1dc4e2cec -- nosy: +python-dev resolution: -> fixed stage: test needed -> committed/rejected st

[issue13232] Logging: Unicode Error

2011-10-20 Thread Thomas Guettler
Thomas Guettler added the comment: 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 de

[issue13232] Logging: Unicode Error

2011-10-20 Thread Thomas Guettler
Changes by Thomas Guettler : Added file: http://bugs.python.org/file23486/unicodedecodeerror-in-logging.py ___ Python tracker ___ ___ Python-b

[issue13232] Logging: Unicode Error

2011-10-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13232] Logging: Unicode Error

2011-10-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue13232] Logging: Unicode Error

2011-10-20 Thread Vinay Sajip
Vinay Sajip added the comment: Can you tell me what the actual data was which failed to be decoded? Is there more than one encoding in effect (e.g. one for the filesystem, and another for the other data in the exception being logged)? -- nosy: +vinay.sajip ___

[issue13232] Logging: Unicode Error

2011-10-20 Thread Thomas Guettler
New submission from Thomas Guettler : In changeset fe6be0426e0d the format() method was changed. Unfortunately it does not catch all unicode decode errors. I think line 482 of logging/__init__.py should be modified: to this (add 'replace'): s = s + record.exc_text.decode(sys.getfilesystemenco