id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 2898,deluged-1.3.13/libtorrent-1.1.0 messes up torrent directory names,edechamps,,"I've been using Deluge 1.3.12 with libtorrent 1.0.7 on Debian Sid for quite some time. Recently Debian Sid upgraded to Deluge 1.3.13 and libtorrent 1.1.0. When I restarted Deluge on my existing torrents, I noticed that the directory names on some of my torrents were badly messed up. Specifically, Deluge seemed to add spurious slashes in the middle of top-level torrent directory names at random for no apparent reason. For example, say that a torrent has the following top-level directory name (i.e. the name of the directory inside the torrent itself): ""Foo - Bar - Baz"" For no apparent reason, that name changed to the following when the new version of deluged/libtorrent loaded the torrent: ""Foo/- Bar - Baz"" Basically the name is corrupted - a space was replaced by a slash, and I ended up with a subdirectory. It seems like, for some reason, it's only spaces or dots that get replaced by slashes. This is *very* weird. Additional information: - Obviously this prevented the affected torrents from starting, since Deluge couldn't find the data using the wrong path. - This only happened on a small subset (around 2%) of my torrents. I couldn't determine why these torrents were affected but not others - it seemed random. There were plenty of unaffected torrents using similar naming schemes. - If I downgrade libtorrent to 1.0.9 (keeping deluged-1.3.13), the problem goes away. This seems to indicate a regression was introduced between libtorrent 1.0.9 and 1.1.0. - I cannot use the rename functionality to try to fix the problem - it behaves very erratically on these corrupted torrents and basically refuses to rename the directory, or even manages to somehow corrupt the torrent itself (e.g. bencode complaining that end-of-file was reached). - None of my torrents use the top-level original directory name from the original torrent. I always rename every torrent with a custom top-level directory name immediately after I add them. Maybe this has something to do with the issue.",bug,new,minor,not applicable,libtorrent,1.3.13,,,