[issue7077] SysLogHandler can't handle Unicode

2010-09-03 Thread Vinay Sajip
Vinay Sajip added the comment: Fix backported to release27-maint (r84445). Python 2.6 and earlier are in security-fix-only mode. -- ___ Python tracker ___ __

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread Remi Broemeling
Remi Broemeling 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

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread Remi Broemeling
Remi Broemeling added the comment: I was encountering the logging.handlers.SysLogHandler bug described by Georg Brandl yesterday/today -- it took quite a while to track down the issue as I assumed it would be in either my code or possibly the framework code (Django). I didn't take into accou

[issue7077] SysLogHandler can't handle Unicode

2010-08-21 Thread Georg Brandl
Georg Brandl added the comment: Looks good to me. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7077] SysLogHandler can't handle Unicode

2010-08-20 Thread Vinay Sajip
Changes by Vinay Sajip : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7077] SysLogHandler can't handle Unicode

2010-08-20 Thread Vinay Sajip
Vinay Sajip added the comment: Err, make that r84222. -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7077] SysLogHandler can't handle Unicode

2010-08-19 Thread Vinay Sajip
Vinay Sajip added the comment: Updated implementation so that + BOM + message is sent, for py3k branch only (r84218). Please verify fix in your environment. -- status: open -> pending ___ Python tracker _

[issue7077] SysLogHandler can't handle Unicode

2010-08-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ __

[issue7077] SysLogHandler can't handle Unicode

2010-07-26 Thread Georg Brandl
Georg Brandl added the comment: There is indeed a problem with the patch: the BOM is put in front of the angle brackets indicating the priority/facility, so the syslog can't find it anymore. The BOM should be put after the brackets. -- nosy: +georg.brandl status: closed -> open

[issue7077] SysLogHandler can't handle Unicode

2009-10-21 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into trunk and py3k (r75586). Please verify in your environment and post your results here. There are no plans to backport this to 2.6 or earlier. -- resolution: -> fixed status: open -> pending ___ Python

[issue7077] SysLogHandler can't handle Unicode

2009-10-16 Thread Vinay Sajip
Vinay Sajip added the comment: According to information from Martin von Löwis - see http://mail.python.org/pipermail/python-dev/2009-October/092825.html - UTF-8 should always be used, with a BOM, when sending Unicode (according to RFC 5424). The fix will use this approach. No encoding paramete

[issue7077] SysLogHandler can't handle Unicode

2009-10-09 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7077] SysLogHandler can't handle Unicode

2009-10-08 Thread Vinay Sajip
Vinay Sajip added the comment: > Robert Szefler added the comment: > > Fine with me, though problems would arise. Default encoding for example. > If encoding selection is mandatory it would break compatibility. Using > default locale is not such a good idea - local machine's locale would > ge

[issue7077] SysLogHandler can't handle Unicode

2009-10-08 Thread Robert Szefler
Robert Szefler added the comment: Fine with me, though problems would arise. Default encoding for example. If encoding selection is mandatory it would break compatibility. Using default locale is not such a good idea - local machine's locale would generally not need to have any correlation to th

[issue7077] SysLogHandler can't handle Unicode

2009-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: To do this in a non-arbitrary way, it would make sense for the SysLogHandler (and perhaps the other socket-based handlers, too) to grow an optional encoding argument to their constructors, to be used to encode when converting from unicode to str (str -> bytes for P

[issue7077] SysLogHandler can't handle Unicode

2009-10-07 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue7077] SysLogHandler can't handle Unicode

2009-10-07 Thread Robert Szefler
New submission from Robert Szefler : Trying to .emit() a Unicode string causes an awkward exception to be thrown: Traceback (most recent call last): File "/usr/lib/python2.5/logging/handlers.py", line 672, in emit self.socket.sendto(msg, self.address) TypeError: sendto() takes exactly 3 ar