[issue7077] SysLogHandler can't handle Unicode
Remi Broemeling
report at bugs.python.org
Thu Sep 2 22:19:41 CEST 2010
Remi Broemeling <remi at broemeling.org> added the comment:
Attaching UTFFixedSysLogHandler, which is a sub-class of logging.handlers.SysLogHandler. The sub-class re-implements the emit() code to put the BOM in the right place (a re-implementation of r84218 and r84222). Can be used with existing Python codebases as a bug-fixed drop-in-replacement for logging.handlers.SysLogHandler without having to edit the core python module. Just use UTFFixedSysLogHandler instead of logging.handlers.SysLogHandler.
Online necessary until such time as the bug-fixes are pulled into stable versions of python.
----------
Added file: http://bugs.python.org/file18715/utffixedsysloghandler.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7077>
_______________________________________
More information about the Python-bugs-list
mailing list