From 76911f3d38ed0cff93fd4e4ec81249f30d7ef5b1 Mon Sep 17 00:00:00 2001 From: Alexander van Gessel Date: Tue, 26 Nov 2013 21:47:50 +0100 Subject: [PATCH] Fix unicode processing Signed-off-by: Eric S. Raymond --- NEWS | 3 +++ irkerd | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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.") -- 2.26.2