Fix unicode processing
authorAlexander van Gessel <ai0867@gmail.com>
Tue, 26 Nov 2013 20:47:50 +0000 (21:47 +0100)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 26 Nov 2013 21:39:53 +0000 (16:39 -0500)
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
NEWS
irkerd

diff --git a/NEWS b/NEWS
index b6d2f95017fd3cb752228876452e185480532127..9eb4e80161e613b35a9634eb3c8ba4f08f35dea8 100644 (file)
--- 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 24b3e7753074150e7c27de99b3b14d03f0feeb29..0453a0a284ae71c73696d5228edb1bdd6fe07788 100755 (executable)
--- 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.")