From 7b8e5ae4ce4f21279c0aff6ca99c2bddf14c15dc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:28:38 +0200 Subject: Adding patch to fix pretty formatting in irk. Signed-off-by: Daniel Baumann --- debian/patches/progress-linux/0001-message-decode.patch | 16 ++++++++++++++++ debian/patches/series | 1 + 2 files changed, 17 insertions(+) create mode 100644 debian/patches/progress-linux/0001-message-decode.patch (limited to 'debian') 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 +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 f271c35..5ba4978 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ 0015-Update-irkerhook-documentation-to-python-3.patch 0016-Update-shebangs.patch 0007-Fix-syntax-error-in-irkerhook.py.patch +progress-linux/0001-message-decode.patch -- cgit v1.2.3