mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 03:06:37 +03:00
Another encoding fix
This commit is contained in:
parent
802d262776
commit
12d1e852f4
1 changed files with 1 additions and 1 deletions
|
@ -2535,7 +2535,7 @@ void QBtSession::saveDHTEntry() {
|
|||
const QString dht_path = misc::cacheLocation()+QDir::separator()+QString::fromUtf8("dht_state");
|
||||
if(QFile::exists(dht_path))
|
||||
misc::safeRemove(dht_path);
|
||||
boost::filesystem::ofstream out(dht_path.toUtf8().constData(), std::ios_base::binary);
|
||||
boost::filesystem::ofstream out(dht_path.toLocal8Bit().constData(), std::ios_base::binary);
|
||||
out.unsetf(std::ios_base::skipws);
|
||||
bencode(std::ostream_iterator<char>(out), dht_state);
|
||||
qDebug("DHT entry saved");
|
||||
|
|
Loading…
Reference in a new issue