Message115402
| Author |
Remi.Broemeling |
| Recipients |
Remi.Broemeling, georg.brandl, rszefler, vinay.sajip, vstinner |
| Date |
2010年09月02日.20:19:39 |
| SpamBayes Score |
0.00020821951 |
| Marked as misclassified |
No |
| Message-id |
<1283458781.99.0.358053128744.issue7077@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|