summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0001-message-decode.patch
blob: 613314eda1fb7b1d7a5b0710bfc6c4d35d202b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Fixing output of messages with color in irk.

diff -Naurp irker.orig/irk irker/irk
--- irker.orig/irk	2021-05-09 06:17:54.586109323 +0200
+++ irker/irk	2021-07-27 16:07:04.038137404 +0200
@@ -43,8 +43,7 @@ def main():
     target = sys.argv[1]
     message = " ".join(sys.argv[2:])
     # Allows pretty formatting of irker messages
-    if str == bytes:
-        message = message.decode('string_escape')
+    message = message.encode('utf-8').decode('unicode-escape')
 
     # The actual IRC limit is 512. Avoid any off-by-ones
     chunksize = 511