From 95e40aa64b6596e5dc44c79375b368d4be012a7e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 14 Sep 2008 20:08:19 +0000 Subject: [PATCH] Fix #475 the use of unicode paths when adding torrents --- ChangeLog | 1 + deluge/core/torrentmanager.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fc78ecba1..0d3b29084 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ Deluge 0.9.09 - "1.0.0_RC9" (10 September 2008) have 'announce' in it's url. * Fix fastresume issue causing loss of data by deleting the fastresume file before writing a new one + * Fix #475 the use of unicode paths when adding torrents GtkUI: * Fix add torrent dialog closing preventing another dialog from being shown diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 3c2e4b6a8..f85fc888e 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -316,7 +316,7 @@ class TorrentManager(component.Component): storage_mode = lt.storage_mode_t(1) # Fill in the rest of the add_torrent_params dictionary - add_torrent_params["save_path"] = str(options["download_location"]) + add_torrent_params["save_path"] = options["download_location"].encode("utf8") add_torrent_params["storage_mode"] = storage_mode add_torrent_params["paused"] = True