[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

[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