diff options
Diffstat (limited to 'net-im/gajim/files/0.14.4-unicode.patch')
-rw-r--r-- | net-im/gajim/files/0.14.4-unicode.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-im/gajim/files/0.14.4-unicode.patch b/net-im/gajim/files/0.14.4-unicode.patch new file mode 100644 index 000000000000..5c0dd0d314aa --- /dev/null +++ b/net-im/gajim/files/0.14.4-unicode.patch @@ -0,0 +1,19 @@ +diff --git a/src/remote_control.py b/src/remote_control.py +--- a/src/remote_control.py ++++ b/src/remote_control.py +@@ -211,6 +211,15 @@ class Remote: + + def raise_signal(self, signal, arg): + if self.signal_object: ++ arg_copy = list(arg) ++ newarg = [] ++ for a in arg_copy[1]: ++ try: ++ newarg.append(a.decode('utf-8', 'replace')) ++ except: ++ newarg.append(a) ++ arg_copy[1] = newarg ++ arg = tuple(arg_copy) + try: + getattr(self.signal_object, signal)(get_dbus_struct(arg)) + except UnicodeDecodeError: |