Re: [Python-Dev] Possible change to logging.handlers.SysLogHandler

2012-04-11 Thread Vinay Sajip
Gregory P. Smith krypto.org> writes: > Given the existing brokenness I personally think that removing the BOM insertion (because it is incorrect) in 2.7 and 3.2 is fine if you cannot find a way to make it correct in 2.7 and 3.2 without breaking existing APIs. I have an idea for a change which wo

Re: [Python-Dev] Possible change to logging.handlers.SysLogHandler

2012-04-10 Thread Vinay Sajip
Gregory P. Smith krypto.org> writes: > Given the existing brokenness I personally think that removing the BOM > insertion (because it is incorrect) in 2.7 and 3.2 is fine if you cannot find > a way to make it correct in 2.7 and 3.2 without breaking existing APIs. Thanks for the feedback. > cou

Re: [Python-Dev] Possible change to logging.handlers.SysLogHandler

2012-04-10 Thread Gregory P. Smith
On Fri, Apr 6, 2012 at 1:06 PM, Vinay Sajip wrote: > There is a problem with the way logging.handlers.SysLogHandler works > when presented with Unicode messages. According to RFC 5424, Unicode > is supposed to be sent encoded as UTF-8 and preceded by a BOM. > However, the current handler implemen

[Python-Dev] Possible change to logging.handlers.SysLogHandler

2012-04-06 Thread Vinay Sajip
There is a problem with the way logging.handlers.SysLogHandler works when presented with Unicode messages. According to RFC 5424, Unicode is supposed to be sent encoded as UTF-8 and preceded by a BOM. However, the current handler implementation puts the BOM at the start of the formatted message, an