summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:34:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:34:45 +0000
commitdf5dc5bf74f8918dff2ad5bde3ac06f38bd95281 (patch)
treee6e0205a4173dd9fa2d2ce57adaf4f4dbba5e433
parentUpdating vcs fields. (diff)
downloadirker-df5dc5bf74f8918dff2ad5bde3ac06f38bd95281.tar.xz
irker-df5dc5bf74f8918dff2ad5bde3ac06f38bd95281.zip
Adding patch to fix pretty formatting in irk.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/progress-linux/0001-message-decode.patch16
-rw-r--r--debian/patches/series1
2 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0001-message-decode.patch b/debian/patches/progress-linux/0001-message-decode.patch
new file mode 100644
index 0000000..613314e
--- /dev/null
+++ b/debian/patches/progress-linux/0001-message-decode.patch
@@ -0,0 +1,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
diff --git a/debian/patches/series b/debian/patches/series
index 9dca8d6..75110bd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
0016-Update-shebangs.patch
0007-Update-HgExtractor-to-work-with-mercurial-using-pyth.patch
0008-Update-irkerhook-to-recent-mercurial-changes.patch
+progress-linux/0001-message-decode.patch