From 5b8f9f29b88b2ef1d4cf6fb8fd131b1615a223ed Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 5 Apr 2009 23:10:41 +0000 Subject: [PATCH] Fix loading torrent files in Windows when the path is non-ascii --- deluge/ui/gtkui/addtorrentdialog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index fbf4907a7..fdaa896b9 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -175,6 +175,9 @@ class AddTorrentDialog(component.Component): new_row = None for filename in filenames: + # Convert the path to unicode + filename = unicode(filename) + # Get the torrent data from the torrent file try: info = deluge.ui.common.TorrentInfo(filename)