Properly fix creating torrents in the gtkui with non-ascii filenames
This commit is contained in:
parent
5ea7e21943
commit
bb0bd36c51
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue