From: Alexander van Gessel Date: Tue, 26 Nov 2013 20:47:50 +0000 (+0100) Subject: Fix unicode processing X-Git-Tag: 2.2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76911f3d38ed0cff93fd4e4ec81249f30d7ef5b1;p=irker.git Fix unicode processing Signed-off-by: Eric S. Raymond --- diff --git a/NEWS b/NEWS index b6d2f95..9eb4e80 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ irker history +Repository head: + Fixed unicode processing + 2.1 @ 2013-11-26 A performance improvement in the git repository hook. Documentation polishing. diff --git a/irkerd b/irkerd index 24b3e77..0453a0a 100755 --- a/irkerd +++ b/irkerd @@ -348,7 +348,7 @@ class IRCServerConnection(): def ship(self, string): "Ship a command to the server, appending CR/LF" try: - self.socket.send(string + b'\r\n') + self.socket.send(string.encode('utf-8') + b'\r\n') self.master.debug(2, "TO: %s" % string) except socket.error: self.disconnect("Connection reset by peer.")