[issue7077] SysLogHandler can't handle Unicode

2010-09-03 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix backported to release27-maint (r84445). Python 2.6 and earlier are in security-fix-only mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread Remi Broemeling
Remi Broemeling r...@broemeling.org 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

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___ ___

[issue7077] SysLogHandler can't handle Unicode

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

[issue7077] SysLogHandler can't handle Unicode

2010-08-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks good to me. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___

[issue7077] SysLogHandler can't handle Unicode

2010-08-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Err, make that r84222. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___

[issue7077] SysLogHandler can't handle Unicode

2010-08-20 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___ ___

[issue7077] SysLogHandler can't handle Unicode

2010-08-19 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Updated implementation so that n + 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 tjre...@udel.edu: -- stage: - commit review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___

[issue7077] SysLogHandler can't handle Unicode

2010-07-26 Thread Georg Brandl
Georg Brandl ge...@python.org 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:

[issue7077] SysLogHandler can't handle Unicode

2009-10-21 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue7077] SysLogHandler can't handle Unicode

2009-10-16 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue7077] SysLogHandler can't handle Unicode

2009-10-09 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___ ___

[issue7077] SysLogHandler can't handle Unicode

2009-10-08 Thread Robert Szefler
Robert Szefler robert.szef...@redefine.pl 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

[issue7077] SysLogHandler can't handle Unicode

2009-10-08 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue7077] SysLogHandler can't handle Unicode

2009-10-07 Thread Robert Szefler
New submission from Robert Szefler robert.szef...@redefine.pl: 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:

[issue7077] SysLogHandler can't handle Unicode

2009-10-07 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___ ___

[issue7077] SysLogHandler can't handle Unicode

2009-10-07 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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