From 5d0dace1317acd9d6dcf0807a8f0507434aacf2c Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 2 Mar 2012 15:32:21 +0000 Subject: [PATCH] Fix #2045 : UnicodeDecodeError when using non-ascii chars in info Input arg string needed decoding otherwise comparing with unicode torrent name fails. --- ChangeLog | 5 +++++ deluge/ui/console/main.py | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8450870aa..f58629dbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ * Fix setting daemon listen interface from command line * #2021: Fix share ratio limit not obeyed for seeded torrents added to session * Add optparse custom version to prevent unnecessary loading of libtorrent + * #1554: Fix seeding on share ratio failing for partially selected torrents ==== GtkUI ==== * #1918: Fix Drag'n'Drop not working in Windows @@ -44,6 +45,7 @@ ==== Console ==== * #1953: Fix flickering on every update * #1954: Fix 'invalid literal for float' when setting listen interface + * #1945: Fix UnicodeDecodeError when using non-ascii chars in info ==== Label ==== * #1961: Add missing 'All' filter option @@ -57,6 +59,9 @@ ==== Scheduler ==== * Add plugin page for WebUi +==== Execute ==== + * Commands now run scripts asynchronous to prevent Deluge from hanging + ==== AutoAdd ==== * Added watch folder support for '.magnet' text file containing single or multiple magnet uris * Fix glade object issue when re-enabling plugin in same session diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index dff119c3f..27e45afa9 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -441,6 +441,7 @@ Please use commands from the command line, eg:\n """ ret = [] + string = string.decode(self.encoding) for tid, name in self.torrents: if tid.startswith(string) or name.startswith(string): ret.append(tid)