Properly fix creating torrents in the gtkui with non-ascii filenames

This commit is contained in:
Damien Churchill 2010-05-04 00:28:24 +01:00
parent 5ea7e21943
commit bb0bd36c51
1 changed files with 2 additions and 2 deletions

View File

@ -332,12 +332,12 @@ class CreateTorrentDialog:
self.glade.get_widget("progress_dialog").hide_all() self.glade.get_widget("progress_dialog").hide_all()
deferToThread(self.create_torrent, deferToThread(self.create_torrent,
path.decode('utf-8').encode(sys.getfilesystemencoding()), path.decode('utf-8'),
tracker, tracker,
piece_length, piece_length,
self._on_create_torrent_progress, self._on_create_torrent_progress,
comment, comment,
result, result.decode('utf-8'),
webseeds, webseeds,
private, private,
author, author,