From f3f5aa661e12b84307e2c0e1ac254f3421626f72 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 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)