Remi Broemeling <r...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7077>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to