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
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
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7077
___
___
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
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
___
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
___
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7077
___
___
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
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
___
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:
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
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
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
assignee: - vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7077
___
___
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
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
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:
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7077
___
___
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
18 matches
Mail list logo