diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-09-24 13:20:53 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-09-24 13:20:53 +0000 |
commit | 27ccc5635d7a3eae062fec03a7a6beebb4b78a6f (patch) | |
tree | 0366967dfc0441df1eeab0222c3c610387f002e5 /net-im/gajim/files | |
parent | Remanifest. tarball was repacked. (diff) | |
download | historical-27ccc5635d7a3eae062fec03a7a6beebb4b78a6f.tar.gz historical-27ccc5635d7a3eae062fec03a7a6beebb4b78a6f.tar.bz2 historical-27ccc5635d7a3eae062fec03a7a6beebb4b78a6f.zip |
Don't crash on unicode chars, #383463; thanks Suloev Dmitry for the patch; http://trac.gajim.org/ticket/6974
Package-Manager: portage-2.2.0_alpha59/cvs/Linux x86_64
Diffstat (limited to 'net-im/gajim/files')
-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: |