Re: [Python-Dev] Logging, Unicode and sockets

2009-10-08 Thread Vinay Sajip
Martin v. Löwis v.loewis.de> writes: > I can't understand what the problem with SocketHandler/DatagramHandler > is. As they use pickle, they should surely be able to send records with > Unicode strings in them, no? Of course you are right. When I posted that it was a knee-jerk reaction to the is

Re: [Python-Dev] Logging, Unicode and sockets

2009-10-08 Thread Martin v. Löwis
> I've noticed that the socket-based logging handlers - SocketHandler, > DatagramHandler and SysLogHandler - aren't Unicode-aware and can break in the > presence of Unicode messages. I can't understand what the problem with SocketHandler/DatagramHandler is. As they use pickle, they should surely b

Re: [Python-Dev] Logging, Unicode and sockets

2009-10-08 Thread MRAB
Vinay Sajip wrote: Thanks to http://bugs.python.org/issue7077 I've noticed that the socket-based logging handlers - SocketHandler, DatagramHandler and SysLogHandler - aren't Unicode-aware and can break in the presence of Unicode messages. I'd like to fix this by giving these handlers an option

[Python-Dev] Logging, Unicode and sockets

2009-10-07 Thread Vinay Sajip
> Thanks to http://bugs.python.org/issue7077 I've noticed that the socket-based logging handlers - SocketHandler, DatagramHandler and SysLogHandler - aren't Unicode-aware and can break in the presence of Unicode messages. I'd like to fix this by giving these handlers an optional (encoding=None)