summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-04-05 23:10:41 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-04-05 23:10:41 +0000
commitf3f5aa661e12b84307e2c0e1ac254f3421626f72 (patch)
tree701f18557948c324cbb11b43acdc796b62d30073
parente8d9c43b48536727d36af8fb8fd78add6cb8cc0f (diff)
downloaddeluge-f3f5aa661e12b84307e2c0e1ac254f3421626f72.tar.gz
deluge-f3f5aa661e12b84307e2c0e1ac254f3421626f72.tar.bz2
deluge-f3f5aa661e12b84307e2c0e1ac254f3421626f72.zip
Fix loading torrent files in Windows when the path is non-ascii
-rw-r--r--deluge/ui/gtkui/addtorrentdialog.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py
index dd6b68da0..6d4475d45 100644
--- a/deluge/ui/gtkui/addtorrentdialog.py
+++ b/deluge/ui/gtkui/addtorrentdialog.py
@@ -174,6 +174,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)