Author: andar
Revision: 5010
Log:
Fix loading torrent files in Windows when the path is non-ascii
Diff:
Modified: branches/1.1.0_RC/deluge/ui/gtkui/addtorrentdialog.py
===================================================================
--- branches/1.1.0_RC/deluge/ui/gtkui/addtorrentdialog.py 2009-04-05
18:31:43 UTC (rev 5009)
+++ branches/1.1.0_RC/deluge/ui/gtkui/addtorrentdialog.py 2009-04-05
23:10:41 UTC (rev 5010)
@@ -174,6 +174,9 @@
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)
Modified: trunk/deluge/ui/gtkui/addtorrentdialog.py
===================================================================
--- trunk/deluge/ui/gtkui/addtorrentdialog.py 2009-04-05 18:31:43 UTC (rev
5009)
+++ trunk/deluge/ui/gtkui/addtorrentdialog.py 2009-04-05 23:10:41 UTC (rev
5010)
@@ -175,6 +175,9 @@
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)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---