Module: deluge
Branch: master
Commit: bb0bd36c51888fa71cab5b79639ad543c62a8e6d

Author: Damien Churchill <[email protected]>
Date:   Tue May  4 00:28:24 2010 +0100

Properly fix creating torrents in the gtkui with non-ascii filenames

---

 deluge/ui/gtkui/createtorrentdialog.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deluge/ui/gtkui/createtorrentdialog.py 
b/deluge/ui/gtkui/createtorrentdialog.py
index f9b5a8a..8d888af 100644
--- a/deluge/ui/gtkui/createtorrentdialog.py
+++ b/deluge/ui/gtkui/createtorrentdialog.py
@@ -332,12 +332,12 @@ class CreateTorrentDialog:
                 self.glade.get_widget("progress_dialog").hide_all()
 
             deferToThread(self.create_torrent,
-                    path.decode('utf-8').encode(sys.getfilesystemencoding()),
+                    path.decode('utf-8'),
                     tracker,
                     piece_length,
                     self._on_create_torrent_progress,
                     comment,
-                    result,
+                    result.decode('utf-8'),
                     webseeds,
                     private,
                     author,

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to